Closed danielwestendorf closed 9 years ago
Thanks for your contribution, @danielwestendorf. For a production website I totally agree with you, it makes sense to use a data-uri instead. For this demo though I only use LESS as a minifier and prefer to keep the pre-compiled version as working CSS.
… URLs
Problem
A common pain point is making sure that image assets are available at a relative URL. This isn't always possible, or users of the library may forget.
Solution
Less now provides the data-uri function which Base64 encodes the image directly into the CSS. The reduces network overhead for data that is likely going to be retrieved anyway, removing the dependency on relative URLs.