Rules  1  2  3  4  5  6  7  8  9  10  11  12  13  14 
Rule 12 - Remove Duplicate Scripts
 Examples  1  2  3 
Example 2 - Duplicate Scripts - Cached

In this example, the duplicate script is cacheable. This is ideal (see Rule 3), but even when the script is cached the browser still executes it twice. We can observe this by simply printing out the value of iCounter, which is incremented in the JavaScript file.

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