TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lighthouse scores: how to reduce render-blocking scripts

32 pointsby TheMissingPiecealmost 7 years ago

2 comments

acconradalmost 7 years ago
Kind of a lot of words for using Async, Defer, or IntersectionObserver. But this is a weird case of using IntersectionObserver. I&#x27;d rather use it for something like lazy-loading images[1]. They have a much higher download cost and will provide a much greater boost in performance than optimizing your JavaScript. Also, by placing all of your scripts at the bottom (save for a few at the top like Modernizr), you really don&#x27;t need to worry too much about async vs defer.<p>[1] <a href="https:&#x2F;&#x2F;www.machmetrics.com&#x2F;speed-blog&#x2F;how-to-lazy-loading-images-script-slash-page-load-time&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.machmetrics.com&#x2F;speed-blog&#x2F;how-to-lazy-loading-i...</a>
评论 #17562867 未加载
falsedanalmost 7 years ago
&gt; <i>If this is too many words, the pretty picture below should help clear things up.</i><p>Holy crap, I knew big G hates users but this level on condescension is off the charts!
评论 #17562623 未加载
评论 #17562848 未加载