Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 2037

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 61k
Author
Asked: November 26, 20242024-11-26T01:43:08+00:00 2024-11-26T01:43:08+00:00

I decreased my average load time by 381ms

  • 61k

Thanks for stopping by, not just a clickbait title, as I went from an average load time of 507ms to 126ms.
A whopping win of 381ms!

Decreasing my load time from 507ms to 126ms

Let's talk about how this came to be.

For those who don't know me, I'm a bit obsessed with making my website faster and optimizing whatever I can on it.

Quite a while ago, I learned that my biggest downfall is Google Analytics. And heck, even a Google product complains about…

Pagespeed insights complaining about Gtag

Yep, this is Pagespeed insights complaining about a google tag. It's just a plain google tag to load your analytics.

And it slows down your loads.

Do I even need Google Analytics

This whole topic came about when I started to think if I even needed Google Analytics.

Their numbers are off, as they can be blocked, and it's just vanity metrics for me at the end of the day.
I don't optimize anything based on their numbers. I just get a kick out of looking at the numbers and seeing the site is growing.

At the time of writing this, I even moved to Cloudflare analytics to test them out.

Inside: So far, they seem to be doing super well and show a more realistic number.

Optimising the Google Analytics load

With that in mind, I thought, why not play around with this google analytics loading to see what we can optimize.

Everyone on the internet will tell you to place that code in your head.

And it makes sense because people might close your page before even loading the footer.

But then realize putting it there slows down your page by a massive 381ms!
Maybe that's WHY they are even leaving in the first place?

And to be honest, who cares that you didn't track that person who didn't wait on your page to load?

It's not like Google Analytics is a realistic number of users anyway.

So I decided to move my implementation.

Before, I loaded it in the head like everyone else.

Google analytics loaded in the head

I then placed this code at the last space before closing the body like so:

Screenshot 2021-11-03 at 10.25.18.png

You might have spotted I replaced the google tag manager loading to a normal loading of only the analytics as this is all that's loaded anyway.

And that made a difference!
A 381ms difference.

This is not based on one load, but an average load of all pages over a week!

Conclusion

Think about your analytics. Do you use it?
Should it be in the head, or can you move it down to make your site faster?

And if you do, you might lose that odd person that doesn't wait for your website, but who cares? 🤷‍♂️

Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter

analyticswebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 2k
  • Popular
  • Answers
  • Author

    How to ensure that all the routes on my Symfony ...

    • 0 Answers
  • Author

    Insights into Forms in Flask

    • 0 Answers
  • Author

    Kick Start Your Next Project With Holo Theme

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.