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 3 - Duplicate Scripts - 10 Cached

In this example, the duplicate script is included 10 times. The browser executes it every time it is included (10 times in this case) as shown by printing out the value of iCounter, which is incremented in the JavaScript file. Even though the script is cacheable, if you reload the page in Internet Explorer, the same script is requested 10 times.

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