DEV Community

Discussion on: Speeding Up - Part 1: Images and JS Minification

jswalker_in profile image

okay, but loading image via blob have beneficial too.

check out a small project of mine :
generate via blob and web worker.

Thread Thread
pavelloz profile image
Paweł Kowalski Author • Edited on

Why would i generate blobs and add complexity of web workers to load an image? Browser is very good at loading an image without it.

Your demo is really a different case - you are loading lots and lots of images and none of them is "the most important" - tesla website has one image and its covers 100% of the page above the fold, so it needs to be loaded ASAP.

PS. What you used on this page is service worker not web worker and if im honest, im pretty sure that if you removed it and replaced it with plain old img tags it would load much much faster. Maybe thats material for a quick article ;-)