When a div is hidden (display:none
) the browser will not load the images that are inside it. Is there a way to tell the browser to load the image? I need the height and the width of the image to do some pre-processing.
Note: due to some other code, I can't make the div visible. Check the example here. Also a "lazy load" example wouldn't work for me.