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

some elements not need lazy

starInEcust opened this issue · comments

if some elements not need lazy-load,what should I do?

I have seen #19 ,and make some elements like

<img class="preview hide" src="images/preview_default.jpg" data-echo="images/XXXXjpg" data-echo-ignore="">
.hide{display:none;}

but when I scoll the window. it will load all my images directly