Hey, be lazy! bLazy.JS is a lightweight pure JavaScript script for lazy loading and multi-serving images. It's working in all modern browsers including IE7+.
On some browsers (I think mostly old IE like < IE11) the call to ele.getBoundingClientRect(); threw an uncaught exception if the element wasn't in the DOM. I added a check before the call.
On some browsers (I think mostly old IE like < IE11) the call to
ele.getBoundingClientRect();
threw an uncaught exception if the element wasn't in the DOM. I added a check before the call.