isomorph.js is an 7kb minified zero dependency layout system, inspired by Automatic Magazine Layout, that has no dependencies.
It allows a layout system to fill a container completely with a defined number of images, in a magazine layout type arrangement, as adopted by the likes of Facebook for a collection of photos. Whilst number of images and width can be determined by the user, height is set by the code. It also handles lazy loading of images.
Requires only this script, a few lines of HTML on a webpage and a collection of images.
This particular plugin is small, fast and versatile. 7kb is the minified size, 2kb gzipped.
Live Preview is here-