8 ms·
Couldn't you use inline scripts and styles with images specified as data uris?
by lukeman 11y ago
Couldn't you use inline scripts and styles with images specified as data uris?
- dheera 11y agoData URLs for large images are horribly space-inefficient.
- kevincox 11y agoOnce you gzip them they aren't bad.
- kbenson 11y agoWe've been down the rabbit hole for a while now, and we've decided it's not so bad down here. Now we are browsing for curtains and a good rug to make the place feel more like home.
- ghayes 11y agoData URLs should be ~1.37x the size [0] of the original file (and generally, kept in the same format). Obviously, there are issues of caching, keeping the image loaded in memory, etc, but it shouldn't be all that bad. Esp. when you consider that ads are inefficient for a variety of other reasons. [0] https://en.wikipedia.org/wiki/Base64#MIME https://en.wikipedia.org/wiki/Base64#MIME
- dheera 11y agoRight, I miscalculated, Base64 isn't as bad as I thought.
- bosdev 11y agoYes, I've used bundlers before which package the scripts and styles into a single HTML file.