The js and css files must be treat differently
Put
jqueryas the first before otherJS scriptsat the bottom oftag
- The problem caused is that they block parallel downloads. The
HTTP/1.1 specificationsuggests that browsers download no more than two components in parallel per hostname.- So select 2 (two) most important scripts on your page like analytic and pixel script on the
tags and let the rest including thejqueryto be called on the bottomtag.Put
CSS styleon top oftag after the other more priority tags
- Moving style sheets to the document
HEADmakes pages appear to be loading faster. This is because putting style sheets in theHEADallows the page to render progressively.- So for
csssheets, it is better to put them all on thetag but let the style that shall be immediately rendered to be put intags insideand the rest in.You may also find other suggestion when you test your page like on Google PageSpeed Insight
- 热议问题