BBC-News/Imager.js — pull request #15 by oncletom (2013-08-29 14:39:53+00:00)
Title: Strategies, URL variables and Unit Testing

# tl;dr

Heavy documentation and logic splitting. We can plug several way to replace the `

` container.

# New Stuff

* configurable URL patterns to let people use whatever file organisation for their resized images (like `http://myserver.co.uk/images/{width}-hidpi/picture.jpg`)
* configurable delay to postpone width URL calculation
* multi instance to target different part of the screen with different settings (sidebar and main content for example)
* you can plug it on any even system (DOM Events, pubsub libraries)
* tests

# Removed Stuff

Basically, they are all about opinionated software design:

* internal event listeners (it's now the business of the people using it in their app)
* `$` shim (we just iterate on array-like of elements)

![](http://i.imgur.com/nLXxLFm.gif)
^ *responsive images huh?*