Optimizing Client-Side Performanceby Andrew Ivachewsky
MotivationEnhance User Experience
Accept Slow Networks
Meet Performance Requirements
Improve Website ConsistencyHTTP Requests ReductionReduce number of page components
Make stylesheets and scripts external
Create sprites for CSS background images
Create image maps for page images
Always use same path to the same resources: http://www.testdomain.com/image.gif is not equal to testdomain.com/image.gifDistribute Page Resources ProperlyKeep stylesheets at the top
Keep scripts at the bottom
Remove duplicate scripts
Strive to make page render progressively
Browsers download no more than 2 resources in parallel per hostnameThink About User Experience
DNS LookupDNS takes about 20-120ms to resolve IP
DNS information is stored at OS DNS cache and browser cache

Optimizing Client-Side Performance