m_ott’s avatarm_ott’s Twitter Archive—№ 19,997

  1. What’s the best way to inline critical CSS and load the rest asynchronously in 2022? Still addyosmani’s critical combined with scottjehl’s onload="this.media='all'" technique? 👇 The Simplest Way to Load CSS Asynchronously filamentgroup.com/lab/load-css-simpler/
    OpenGraph image for filamentgroup.com/lab/load-css-simpler/
    1. …in reply to @m_ott
      And critical (github.com/addyosmani/critical) also supports inlining via inline-critical which even lets you select your preferred preload strategy: github.com/bezoerb/inline-critical#preloadstrategy
      OpenGraph image for github.com/addyosmani/criticalOpenGraph image for github.com/bezoerb/inline-critical#preloadstrategy