Consider this conditions for my website:
I don't support IE8 and below so browser support is not a problem.
I also use gzip that would avoid data overload in CSS in cases that I copy and paste data URI images in my CSS file.
I only have one CSS file that is generated by LESS.
To make it easy, I use LESS variable for each image data URI.
- I put images variables in a separated LESS file to keep my codebase clean
With all this I am still not sure if it's best approach for loading images. Loading small images with this approach reduces number of HTTP requests and also we don't have to maintain a sprite image.
Is there any drawback in this approach you can think of?