国产欧美日本一区二区三区免费_在线午夜日韩_青久视频_91麻豆国产精品91久久久_天天干天天插天天射_天天操夜夜操B天天拍_亚洲精品第一永久地址911_色一情一乱一伦一区二区三区 _精品入口免费_中文成人精品视频久久视频_桃色播播_91嫩草香蕉国产线懂你的网站_日产国产亚洲A片无 码_久久精彩免费视频_永久精品大片www._精品国产成人_日日碰狠狠添天天爽无码av

Optimize CSS sending process

Dec 22, 2015
PageSpeed ??Insights
0
On this page

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.

Overview

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.

Recommendations

如果外部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.

內嵌較小CSS文件的示例

If the HTML document looks like this:
?
< html >
< head >
? ?
?
?
? ?

Hello, world!

?

并且small.cssThe resources are as follows:

?
? .yellow {background-color: yellow;}
? .blue {color: blue;}
? .big { font-size: 8em; }
. bold {font-weight: bold;}

You can embed key CSS as follows:

?

?
? ?

?
? ?

? ? ? Hello, world!
? ?



< link rel= "stylesheet" href= "small. css" >

在網(wǎng)頁加載之后,原始small.css才會加載。通過JavaScript將所有

If you need to get in touch with us, here are our contact details

If you need to get in touch with us, here are our contact details
Contact number
Contact email
WeChat Contact
Jieying Network
QQ