This rule is triggered when PageSpeed Insights detects that a Web page contains an external style sheet that prevents rendering, which delays the display of content on the screen.
The browser blocks the external CSS file before the screen displays the content. This causes additional network latency and prolongs the time for the screen to display content.如果外部CSS資源較小,您可以直接將這些內容插入到HTML文檔中,這稱為“內嵌”。通過這種方式內嵌較小CSS資源,瀏覽器可以繼續(xù)呈現(xiàn)網(wǎng)頁。請注意,如果CSS文件較大,完全內嵌CSS可能會導致PageSpeed Insights通過按優(yōu)先級排列可見內容Warn you that the first screen of the web page is too large. If the CSS file is large, you need to identify and embed the CSS needed to render the first screen content, and hold off loading the remaining styles until the first screen content is displayed.
If the HTML document looks like this: