I want to know when an image has finished loading. Is there a way to do it with a callback?
If not, is there a way to do it at all?
You could use the load()-event in jQuery but it won't always fire if the image is loaded from the browser cache. This plugin https://github.com/peol/jquery.imgloaded/raw/master/ahpi.imgload.js can be used to remedy that problem.