Auto-init immediately, and support refreshing #8

aseemk opened this Issue Feb 25, 2011 · 0 comments


None yet

1 participant


Right now, we only support "initializing" once, so to be safe (in case this script is included in the <head>), we wait to auto-init until window.onload (since ondomready isn't trivial to implement and we don't want to take a dependency on jQuery, etc.).

This is really suboptimal though, because if you have a lot of images on your page, we won't init until all of them have loaded -- which could be super delayed.

So we should auto-init immediately -- optimizing for the recommended best practice of including the script at the bottom of <body> -- and support "refreshing" (updating) both manually and automatically on window load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment