3 ms·
Would the compression work better if you inlined the SVG and served the whole HTML+SVG as one gzipped file? I also think that depending on the SVG complexity,
by xchaotic 9y ago
Would the compression work better if you inlined the SVG and served the whole HTML+SVG as one gzipped file?
I also think that depending on the SVG complexity, you might shave a few bits, but at the expense of more complex processing - polygon-path vs two square in this example...
- Cthulhu_ 9y agoThat is another thing to consider. Google's mod_pagespeed, iirc, analyzes image/css/js file size and whatnot and determines whether it's more effective to inline it or to load it separately (and does so automatically)
- bufferoverflow 9y agoNot if you expected multiple pageviews with that image. In which case it gets loaded once and gets cached.