瀏覽器資源渲染阻塞 英文學名:Render-Blocking Resources,在使用Google 開發者工具Lighthouse的時候,它會幫助開發者生成頁面渲染報告,在報告中將阻塞頁面渲染的資源分爲三類:HTML JS CSS,css
For critical scripts, consider inlining them in your HTML. For non-critical scripts, consider marking them with the async or defer attributes. See Adding Interactivity with JavaScript to learn more.chrome
打開chrome 開發者工具,而後點擊右上角的三點Icon, 在More tools
中選擇coverage
,能夠看出js,css的實際被覆蓋率。瀏覽器