亚洲永久精品免费ww52com,色777狠狠狠综合伊人,中文在线观看免费网站,国产特级毛片AAAAAAA高清,9191精品国产费久久,十八破女处WWW视频,欧美一区二区三区久久综合,日夜夜天天人人综合网,91热久久免费频精品黑人99,国产99久久九九精品无码,日本精品综合精品天堂中文,天天国产综合永久精品日韩,国产私密网站入口,无码精品人妻一区二区三区漫画 ,色噜噜人妻av中文字幕,911亚洲精品永久入口

Remove render-blocking JavaScript

Dec 22, 2015
PageSpeed ??Insights
0
On this page
This rule is triggered when PageSpeed Insights detects that your HTML refers to a system-blocked external JavaScript file (located in the first part of the page).

Overview

The browser must parse the web page before it can be rendered to the user. If the browser encounters an external script blocked by the system during parsing, it must stop parsing and download the JavaScript. Every time this happens, the browser adds a network round trip, which causes a delay in rendering the web page for the first time.

Recommendations

It is recommended that you handle the JavaScript needed to render the first screen area inline, and let the JavaScript needed to add other functions to the web page delay loading until the first screen content is sent. Note that to shorten the load time in this way, you must also 優(yōu)化CSS發(fā)送過(guò)程.

Embedding smaller JavaScript

If external scripts are small, you can add them directly to HTML documents. Embedding smaller files in this way allows the browser to continue rendering web pages. For example, if the HTML document looks like this:

? ? ? ? ? ? ? ?
? ? ? Hello, world! ? ?
?

資源small.jsAs shown below:

/* contents of a small JavaScript file */

那么,您即可按如下這樣內(nèi)嵌腳本:

? ? ? ? ? ? ? ?
? ? ? Hello, world! ? ?
?

這樣,您就可以將small.jsEmbedded in the HTML document, thus eliminating external requests for it.

Delayed loading of JavaScript

為防止JavaScript阻止網(wǎng)頁(yè)加載,建議您在加載JavaScript時(shí)使用HTML異步屬性。例如:

Nickname*:
E-mail*:
Rate*:
Comments*:

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