3 ms·
I just used Smush.it to optimise a couple of images on http://lanyrd.com/ http://lanyrd.com/ (the logo and the background image) and it knocked a good 5KB off t
by simonw 16y ago
I just used Smush.it to optimise a couple of images on http://lanyrd.com/ http://lanyrd.com/ (the logo and the background image) and it knocked a good 5KB off the page load - not too bad at all.
Our filenames are generated from the truncated SHA1 hash of the file contents, so logo.png becomes logo.16c7e567.png - which means we can safely set a far-future expires header and serve through Amazon CloudFront without worrying about changes to the images, JavaScript or CSS not propagating to the live site.
- imurray 16y agoThanks for the example. You can do another 1KB better than Smush did for you: A mirror of your logo: http://homepages.inf.ed.ac.uk/imurray2/tmp/logo.16c7e567.png http://homepages.inf.ed.ac.uk/imurray2/tmp/logo.16c7e567.png A smaller file: http://homepages.inf.ed.ac.uk/imurray2/tmp/logo.squish.png http://homepages.inf.ed.ac.uk/imurray2/tmp/logo.squish.png My notes on squishing images: http://homepages.inf.ed.ac.uk/imurray2/compnotes/squish_images.html http://homepages.inf.ed.ac.uk/imurray2/compnotes/squish_imag...
- simonw 16y agoNeat - thanks for that.