This version is old school.
Please find jQuery plugins on npm.
jQuery imgsLoaded
by Nick Nielsen
Simple plugin to execute javascript after images have loaded. Can be used on any element. Also includes an event that fires each time an image is loaded, with 'count' & 'total' arguments.