Closed jeppester closed 11 years ago
@jeppester
Awesome suggestion and I'm down for adding this to thumbs.js. I should have a free moment this weekend to update the code.
Sounds great!
Awesome polyfill by the way.
Released as 0.6.0. Thanks a load @jeppester!
As by now, the script requires a document-load event to be fired before it will work. This makes the script unusable for situations where you would like to add thumbs.js to an already loaded document.
A simple fix for this, would be to wrap the initialization inside a check of the document's readystate.
Instead of the current window.addEventListener-call, it could be something like this: