Web Performance
-
Service Workers, the future for caching
This week I got the opportunity to experiment with the Service Worker API at work, in a lab session held by @OskarKarlsson. Although it is not supported in all browsers just yet, my initial impressions are pretty much that I love it. It feels a lot like what I would expect Application Cache to be but without the quirks. Not only can we use it as a “Cache Everything” solution, with service workers we’re also able to priorities how we want to read from the cache as well.
-
Optimizing images using MozJPEG
Earlier this week I was at a meetup and got to hear Tobias Baldauf speak about Image Compression. He talked about tools like jpegoptim and jpegrescan and also the new compression formats webp and mozjpeg. If you haven’t seen the talk I suggest that you do take a look at it. If you don’t have time to watch it right now, then here are some cliff notes. Right now WebP is beating MozJPEG in compression (32.9% vs 12.1%) however, compression with MozJPEG yeild less dissimilarity between the original image and the compressed image than compression with webp (0.3% vs 0.09%).