Applies To:

Show Versions Show Versions

Manual Chapter: Accelerating JavaScript and Cascading Style Sheet Files
Manual Chapter
Table of Contents   |   << Previous Chapter   |   Next Chapter >>

Overview: Accelerating Cascading Style Sheet and JavaScript files

Reordering Cascading Style Sheet (CSS) and JavaScript (JS) links within an HTML document can accelerate the perceived time in which a browser renders a web page. Although the actual time required to download the page remains approximately the same, the perceived time to display the page is faster.

When a CSS link appears at the top of the page, preceding the </head> element, a browser can progressively render the page to quickly display the content, which is especially beneficial for users who access content-rich pages by means of slower Internet connections.

When a JS link appears at the end of the page, preceding the </body> element, a browser can download multiple components in parallel for each host name and accelerate the perceived page rendering. You can specify each JS link that you prefer to relocate to the end of the page, and, consequently, accelerate the perceived page rendering. Exceptions to reordering JS information include JS URLs and scripts that use document.write to insert content for the page.

Table of Contents   |   << Previous Chapter   |   Next Chapter >>

Was this resource helpful in solving your issue?




NOTE: Please do not provide personal information.



Incorrect answer. Please try again: Please enter the words to the right: Please enter the numbers you hear:

Additional Comments (optional)