際際滷

際際滷Share a Scribd company logo
How to make your website blazing fast@joshfraser
Slow websites suck
40% of people will abandon a site that take more than 3 seconds to load
Slow websites lose money
Amazon loses 1% of salesfor every 100ms of latency
Google loses 20% of their traffic for every 500ms of latency
Google penalizes the PageRank of slow websites
80-90% of performance is front-end
Yahoo increased their traffic by 9% with a 400ms speed improvement
Shopzilla reduced their load time from 7 seconds to 2.  Traffic increased 25% and revenue increased 12%
Waterfall view of 500startups.com
Time
17% back-end83% front-end
OnloadDOM readyFinished
Initial connectionTime to 1st ByteContent downloadDNS lookup
Recognize this?
3 guidelines Make things smaller
 Move them closer
 Load them smarterMake things smaller
Gzip Reduces size by ~70%!
 ~90% of traffic claims support
 Ignore the Accept-encoding header and use a white-list of supporting browsers instead
Gzipped JS in an iframe to testStrip white space and commentsYUICompressor
JS min
 CSS min
 HTML (watch out for textareas)Optimize images Lossless vs. lossy
 Strip hidden EXIF data
 Use jpegtran & pngcrush / smush.it
 Resize for mobile devices
WebP for Chrome & OperaWebP
Move things closer
How to make your website blazing fast
Use a CDN for your static resources You cant change the speed of light
 Popular CDNs:
Akamai
 Level3
 Limelight
Cloudfront is the most startup friendly
 Use Googles CDN to host your JS libraries
 Likely local browser cache hit
 Fast & free CDN
 Lots of popular libraries availableLoad things smarter

More Related Content

How to make your website blazing fast