RequireJS

RequireJS By: The Dojo Foundation
Free MIT/new BSD

A JavaScript file and module loader optimized for in-browser use, but it can be used in other JavaScript environments like Rhino and Node. Using a modular script loader like RequireJS will improve the speed and quality of your code.

Detects when images have been loaded. Can be used as a jQuery plugin and works with RequireJS. Use with Masonry.