3 ms·
But don't completely disparage it. It saves an HTTP request to include it in the CSS. (Though typically it compresses 30% worse. For smaller images like this,
by JoelSutherland 14y ago
But don't completely disparage it. It saves an HTTP request to include it in the CSS. (Though typically it compresses 30% worse. For smaller images like this, that is not an issue.)
- dhotson 14y agoA similar "image-less" technique I've used is to generate the pattern in JavaScript using a canvas element. eg with canvas.toDataURL("image/png"). The JavaScript code to generate a noise pattern is often smaller than the inlined base64'ed content.