Live data from Hacker News

Google Pagespeed Test Fails Itself on Mobile

developers.google.com

31–33 of 33 posts

Re: Google Pagespeed Test Fails Itself on Mobile

#31
post #22

Earlier quoted context omitted.

You actually can host the Google Analytics JS file locally, though I'm not sure it's an officially supported configuration.

Do you have any resources on doing this?

it's definitely not a supported config: https://support.google.com/analytics/answer/1032389?hl=en

But you can download it, and host it locally. Just update it periodically. As you can see from the changelog, it only changes every few months: https://developers.google.com/analytics/devguides/collection...

Google actually takes a few days to deploy updates to all of their servers. So a daily script to update it on your server would be fine.

Re: Google Pagespeed Test Fails Itself on Mobile

#32
Hilarious that this was just posted as I had to answer to it yesterday. Are we working together?

Here's an email I ended up sending yesterday in reply to a Google Page Speed Test report:

> We can address most of these issues with some further optimizations.

> One thing that will always appear in the Google Page Speed Test reports is the "Should Fix" issue with "Eliminate render-blocking JavaScript and CSS in above-the-fold content". This is a much discussed flag that Google returns that would really only work with non-modern websites, and a test that Google itself can't pass: https://developers.google.com/speed/pagespeed/insights/?url=....

Re: Google Pagespeed Test Fails Itself on Mobile

#33

Earlier quoted context omitted.

Do you have any resources on doing this?

it's definitely not a supported config: https://support.google.com/analytics/answer/1032389?hl=en But you can download it, and host it locally. Just update it periodically. As you can see from the changelog, it only changes every few months: https://developers.google.com/analytics/devguides/collection... Google actually takes a few days to deploy updates to all of their servers. So a daily script to update it on your…

Thanks for this.
Post reply on HN