大网数据广告活动
网站运营与故障问答

Google Page Speed Insights is recommending inline styling and complaining about render blocking JS. Are these even relevant?

· 52CE 我爱测

Sometimes, I feel like Google is living in its own bubble. Most of the time, when you run your page through their tool, it complains either about "page rendering blocking JS", "how you should save 1,8MB of bandwidth" or "how you …

问题原文

原帖链接 · The Law · CC BY-SA 3.0

Sometimes, I feel like Google is living in its own bubble. Most of the time, when you run your page through their tool, it complains either about "page rendering blocking JS", "how you should save 1,8MB of bandwidth" or "how you should just inline your styling, because".

Both of those things are mostly irrelevant and also a matter of opinion, so this brings me back to the title of the question: Does it really matter chasing the "perfect A" on insights?

社区高分解答

原帖链接 · Rob · CC BY-SA 3.0

One of the Google guys, Paul Lewis, said achieving 85 or better should be your goal. Of course those things you mention matter. Both to Google and, especially, users!

Page render blocking is blocking your page. Is it a problem? Maybe not for you but Google is suggesting you look into it and make sure. (Thanks!). Saving 1.8MB of bandwidth? Holy cow! Maybe my images are too big. If not, what is it? Inline styling? What a pain. Are they wrong? No!

Anything that makes your web site load faster is always good for the user! Thanks Google!

But overall, Paul agrees with you.

Now the thing to bear in mind about PSI is that it’s distilling down a collection of very good (and broad) set of rules and seeing how your site measures up. It doesn’t really care about context or what you chose to do or not do as a team. As such I just tend to see PSI as a checklist of things that are somewhere between “a good idea” and “crucial”, and I don’t aim for a score of 100 across the board.

The reason I’m not going to pin all my hopes on a PSI score of 100 is that it may make my development more difficult. Inlining CSS and JavaScript to pages is one recommendation that it makes, but I think more context is required here.

And even Google will say that.

A higher score is better and a score of 85 or above indicates that the page is performing well.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。