Re:How to Get 100/100 Google Page Speed Score with Middleman...
by elliotec on Friday October 20, 2017 @02:05PM
(#15517872)
Any examples of the bad advice that would slow down the page?
[ Parent
| on HN ]
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by partiallypro on Friday October 20, 2017 @02:09PM
(#15517901)
A very basic example: if you had a large site, you can raise my Google Page Speed score by inlining all CSS and JS, but that would be stupid because it doesn't take into account the next page load and caching. I've seen some render blocking optimizations slow the overall page too. Getting rid of query strings is nice, but sometimes you need it for cache busting and other things, but it penalizes your score. Even Google's own tag manager/analytics scripts lowers your page speed score when they are on the site.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by badestrand on Friday October 20, 2017 @09:23PM
(#15520175)
>> Even Google's own tag manager/analytics scripts lowers your page speed score when they are on the site.
I never understood why Google doesn't fix this. I want to use Google Analytics but their own tool penalizes me for it because it gets unproperly cached on Google's own servers? That's just stupid.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by manigandham on Friday October 20, 2017 @09:49PM
(#15520260)
It's just a tool with a random score - why does it matter? Most of the recommendations are now outdated. Focus on overall experience and there are plenty of RUM monitoring scripts you can use (that take advantage of the very fine grained performance timings available in browsers today).
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by tinus_hn on Saturday October 21, 2017 @07:24AM
(#15521498)
> sometimes you need it for cache busting
So it’s not good for speed
> Even Google's own tag manager/analytics scripts lowers your page speed score
Well these don’t exactly speed up loading your page.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by goldenkey on Friday October 20, 2017 @08:30PM
(#15520003)
Inlining assets is even less important and more of an overoptimization as HTTP2 pipelining takes over. Its like threading..used to be expensive and a sign of bad code whereas now, since everyone has cores to spare, its a sign of good algorithm use.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by NicoJuicy on Saturday October 21, 2017 @12:37AM
(#15520680)
Http 2 handles loading multiple files better. So bundling isn't that important anymore.
Also, no need to put assets in a different domain anymore ( limit on loading resources per domain simultaneously)
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by ahmetkun on Saturday October 21, 2017 @05:11AM
(#15521244)
> Also, no need to put assets in a different domain anymore
It's even considered harmful since extra domains means extra dns lookups which could take quite a while.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by debaserab2 on Saturday October 21, 2017 @07:02AM
(#15521450)
I’d say bundling is more important than ever right now in the modern JS ecosystem where an average site or app uses dozens of NPM modules.
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by NicoJuicy on Saturday October 21, 2017 @07:18AM
(#15521479)
As mentioned, in Http2 and server push... No need for bundling.
I agree on http 1.1. Sorry that you downvoted on a lack of knowledge ;)
Re:How to Get 100/100 Google Page Speed Score with Middleman...
by debaserab2 on Saturday October 21, 2017 @12:08PM
(#15522294)
No, I understand HTTP2 and the advantages server push brings (on paper). When you consider it’s inconsistent implementation across browser vendors and that it really works best only in a scenario with optimal connection quality, I’d say it’s bad advice to tell people to stop bundling JavaScript especially in today’s world where an average codebase is likely going to have a ton of modules.