site: • Optimize an existing feature or asset on the page. • Remove an existing feature or asset from the page. • Don’t add the new feature or asset. http://timkadlec.com
4-6 simultaneous connections per server http://www.mobify.com http://www.stevesouders.com Pros: • Maximize parallel download Cons: • Additional http requests • New connections = More Latency • Use maximal 2 domains • Do it only if you have more than 20 assets to download • Make sure to use cookie-less domain for serving images
gradients, shadows... • Optimize Compression • Use Data URI’s for small images • Use SVG images Data URI: <img width="16" height="16" alt="star" src="data:image/gif;base64, R0lGODlhEAAQAMQAAORHHOVSKudfOulrSOp3WOyDZu6QdvCchPGolfO0o/XBs/fNwfjZ0frl3/ zy7////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5 BAkAABAALAAAAAAQABAAAAVVICSOZGlCQAosJ6mu7fiyZeKqNKToQGDsM8hBADgUXoGAiqhSvp 5QAnQKGIgUhwFUYLCVDFCrKUE1lBavAViFIDlTImbKC5Gm2hB0SlBCBMQiB0UjIQA7" /> DATA URI convertor: http://websemantics.co.uk/online_tools/image_to_data_uri_convertor/ http://css-tricks.com/data-uris/ http://www.mobify.com
• Browser blocks rendering until it loads CSS. • Put critical “above the fold” CSS inline in HTML <head> • Load the rest at the bottom of the document Pros: Browser will start painting earlier Cons: Extra work to isolate critical CSS for every page(!)