toddmotto / echo

Lazy-loading images with data-* attributes

Home Page:http://toddmotto.com/labs/echo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loop over store incrementally

christian-fei opened this issue · comments

I find that on line 13 you should loop over the store incrementally instead.
Better UX when loading (heavy) images, because it will (at least try) to load images in a logical order. This because you are scrolling a webpage from the top to the bottom.
Like this:

for (var i = 0, l = store.length; i < l; i++) {
  //...
}