Live data from Hacker News

Google Pagespeed Test Fails Itself on Mobile

developers.google.com

21–30 of 33 posts

Re: Google Pagespeed Test Fails Itself on Mobile

#22

Earlier quoted context omitted.

The suggestion says to cache the js file for the analytics tracker, not to remove it.

It's hosted by Google, so they control the cache time.

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

Re: Google Pagespeed Test Fails Itself on Mobile

#23

Earlier quoted context omitted.

The suggestion says to cache the js file for the analytics tracker, not to remove it.

It's hosted by Google, so they control the cache time.

Why do they only cache it for two hours? Do they want changes to be that quick to take?

Re: Google Pagespeed Test Fails Itself on Mobile

#25
The Pagespeed Insights API is pretty easy to use, if anyone is interested in Pagespeed Insights as a service.

I built an Android app for it as sort of a proof-of-concept back when Holo was a thing, and it was very straight forward. I'm actually kind of surprised that Google didn't build one themselves.

Re: Google Pagespeed Test Fails Itself on Mobile

#26
post #22

Earlier quoted context omitted.

It's hosted by Google, so they control the cache time.

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?

Re: Google Pagespeed Test Fails Itself on Mobile

#27
Amazes me how much weighting people sometimes put in these type of tools, and start panicking because they enter a website they work on and it comes back with some red text.

Have had jobs where random marketing colleagues email the developers along the lines of "Why do we only score 7/10 in this test, 45.5% in this test, and 2 critical issues were found in this test?"

Don't get me wrong, they are useful, but people act the same way they would if their virus scanner found their computer was completely comprised. Unless the tools have a major tangible impact in something that affects the business, ie. SEO, I tend to ignore them unless they are a simple fix.

Re: Google Pagespeed Test Fails Itself on Mobile

#28
post #24

I heard it's closed already last year?

You may be thinking of PageSpeed Service[0], which was a proxy service of Google's. PageSpeed Service was shut down[3] in May of 2015. PageSpeed Insights[1] is a service of theirs that checks pages for usability and performance and is still active. There is also a PageSpeed Insights SDK[2] available, so you could self-host if they decide to stop offering the service.

[0] https://developers.google.com/speed/pagespeed/service

[1] https://developers.google.com/speed/pagespeed/insights/

[2] https://code.google.com/p/page-speed/

[3] http://techcrunch.com/2015/05/06/google-shuts-down-pagespeed...

Re: Google Pagespeed Test Fails Itself on Mobile

#29
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?

You could probably proxy a file through your own server and add any headers you like. But in that case browser cannot use a version of a script cached at other sites.

Re: Google Pagespeed Test Fails Itself on Mobile

#30

Amazes me how much weighting people sometimes put in these type of tools, and start panicking because they enter a website they work on and it comes back with some red text. Have had jobs where random marketing colleagues email the developers along the lines of "Why do we only score 7/10 in this test, 45.5% in this test, and 2 critical issues were found in this test?" Don't get me wrong, they are useful, but people a…

Your comment brings back memories of previous clients I worked with, who phoned me in a panic after running an HTML validator that turned up mutliple warnings. Not even errors.
Post reply on HN