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 JavaScript and Cascading Style Sheet files

You can improve acceleration by using reordering and minification of JavaScript (JS) and Cascading Style Sheet (CSS) files to reduce the number and sizes of files transferred across a network, thus improviing the acceleration of traffic.

About reordering Cascading Style Sheet and JavaScript URLs and content

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, 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 hostname 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.

About minification of JavaScript and Cascading Style Sheet content

Minification removes whitespaces, comments, and unnecessary special characters from JavaScript (JS) and Cascading Style Sheet (CSS) files, which reduces the file sizes. The WebAccelerator system caches only the minified documents. If you simply need minification without optimization, you can use a predefined policy configured to use minification.

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)