spin.js

spin.js.

This is genius. It’s one of those things I slap my forehead and wonder why I hadn’t thought of it. Spinners built completely out of JavaScript, created and destroyed only when you need them.

I thought for a second about it, and when are we all using spinners? Usually it’s when JavaScript is doing some work, waiting for a request to complete the circle, loading assets, something. We want visual feedback so a small spinning gif is popped in and we’re good to go. But we have to append the img node to the DOM (or have our CSS class set up to handle it), make sure it’s positioned properly, and then either remove it or the class that gave it life.

spin.js seems like a much cleaner solution to me. ajaxload.info will be missed.