Rules  1  2  3  4  5  6  7  8  9  10  11  12  13  14 
Rule 8 - Make JavaScript and CSS External
 Examples  1  2  3  4  5 
Example 5 - Dynamic Inlining
This example shows how a cookie is used by the web server to decide whether to inline or use external files.

In this case, since there was no cookie, the web server inlined the components. After the page was done loading, the four external files were downloaded dynamically and the cookie was set, so that the next page view will benefit from using the browser's cache. Load the page again to see how the page uses external files.

stevesouders.com | contact SteveGreyhound, the 2nd fastest land animalThis is the companion website for High Performance Web Sites by Steve Souders.