from Hacker News

Lighthouse scores: how to reduce render-blocking scripts

by TheMissingPiece on 7/18/18, 8:12 PM with 5 comments

  • by acconrad on 7/18/18, 9:13 PM

    Kind of a lot of words for using Async, Defer, or IntersectionObserver. But this is a weird case of using IntersectionObserver. I'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't need to worry too much about async vs defer.

    [1] https://www.machmetrics.com/speed-blog/how-to-lazy-loading-i...

  • by falsedan on 7/18/18, 9:32 PM

    > If this is too many words, the pretty picture below should help clear things up.

    Holy crap, I knew big G hates users but this level on condescension is off the charts!