Applies To:
Show VersionsBIG-IP AAM
- 12.1.5, 12.1.4, 12.1.3, 12.1.2, 12.1.1, 12.1.0, 11.6.5, 11.6.4, 11.6.3, 11.6.2, 11.6.1
Accelerating JavaScript and Cascading Style Sheet Files
Overview: Accelerating cascading style sheet, JavaScript, and inline image files
You can improve acceleration by reducing the number and sizes of cascading style sheet (CSS) and JavaScript files transferred across a network, and by improving the ability for browsers to render content. The BIG-IP® system uses inlining and concatenation of CSS and JavaScript files to reduce the number and sizes of files transferred across a network, thus improving the acceleration of traffic, and uses minification and reordering to improve the speed that browsers render content.
Task summary
Minifying cascading style sheet and JavaScript files
Task summary for prefetching cascading style sheet, JavaScript, and inline image files
Perform these tasks to prefetch cascading style sheet (CSS) files, JavaScript files, and embedded images in externally linked CSS files.
Task summary
Specifying cascading style sheet, JavaScript, and image URL resources
Creating Domain Lists for DNS Prefetching
Configuring DNS prefetching
Task summary for inlining cascading style sheet, JavaScript, and inline image files
Perform these tasks to inline cascading style sheet (CSS) files, JavaScript files, and embedded images in externally linked CSS files.
Task summary
Specifying cascading style sheet, JavaScript, and image URL resources
Inlining cascading style sheet files
Inlining JavaScript files
Inlining image files
Task summary for reordering cascading style sheet and JavaScript files
Perform these tasks to reorder cascading style sheet (CSS) files and JavaScript files in externally linked CSS files.
Task summary
Specifying cascading style sheet and JavaScript resources
Reordering URLs to cascading style sheet files
Reordering URLs to JavaScript files
Task summary for concatenating cascading style sheet and JavaScript files
Perform these tasks to concatenate Cascading Style Sheet (CSS) files and JavaScript (JS) files in externally linked CSS files.
Task summary
About concatenation of JavaScript and cascading style sheet files
Concatenation combines a specified list of JavaScript (JS) or Cascading Style Sheet (CSS) files into a single concatenated file, which reduces the number of requests and responses, and the time required to transfer serialized files.
For each user-defined policy, you can specify lists of JS URLs and lists of CSS URLs for concatenation. Listings in each URL list appear in the specified order.
During the process of concatenation, the first JS and CSS URL within the HTML file that is specified in a JS or CSS URL list is replaced with the optimized URL, and each subsequent specified JS and CSS URL is removed. The TTL of a concatenated response is determined by the earliest expiration of the concatenated objects.
Specifying Cascading Style Sheet and JavaScript resources
Creating a Cascading Style Sheet concatenation set
Concatenating Cascading Style Sheet files
Creating a JavaScript concatenation set
Concatenating JavaScript files
Implementation results
The system is configured to accelerate cascading style sheet, JavaScript, and inline image files.