Are there differences in performance or loading / caching when displaying images in img or divs tags with image background?
My example:
I have a site with many overlapping images, some of which I will need to dynamically load using javascript. One of the problems is that I need to snap the images to the right of the element so that I can make a good βeraseβ effect. Because of this, I used a div with a background image to the right. Failed to figure out how to do this with img, but since divs work for me, I didn't know if that would matter ...
performance javascript html image
Yarin
source share