What's the best approach for this? I have some more custom .js files that I could apply this toYou could still use ga if you load it later. Try loading it after the page has loaded. That will not affect the page score, but you will still have ga. Even if you try to use an alternative, it would be pretty much the same. Not like google tries to bloat your page.![]()
As for example:What's the best approach for this? I have some more custom .js files that I could apply this to
https://stackoverflow.com/a/45796143/1437261
That's exactly the reason why I do not add YouTube videos. I prefer to upload the video to my site and use the <video> tag to embed it.Google is preaching site speed but their own codes are slowing down the website. The same goes for embedded YouTube videos...
I tested my site through Pingdom before and after I removed the GA .js code.
Before:
- Score: 86
- Loading speed: 930ms
After:
- Score: 95
- Loading speed: 593ms
Looks like I will be looking for an alternative. Any ideas?
If you are using WP, you can use the best of the best speed optimization plugin like WP Rocket. They have an option to host analytics file inside of your host.
WP Rocket is not THE BEST, is one of the best... there is a difference.
you can host GA locally.... if you are using WP, you can use a plugin like this https://wordpress.org/plugins/host-analyticsjs-local/
No, it's the best plugin, nothing else coming near to this.
I am using autoptimize and 0.50$/mo hosting, and I can assure you my site is faster than yours using wp rocket.No, it's the best plugin, nothing else coming near to this.
dude, learn to read and test more, usually helps.... there are free options BETTER than wp rocket... I know because all my websites load below 1s ... spent like 2 years to test almost anything about caching and all important hostings, vps etc ...
and funny ... now loading speed isn't that important like before