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

how to use echo with display none

Nelrann opened this issue · comments

I would use it to preload many images contained in a div with "display:none"
but when I load the page it downloaded all my images directly

it possible to use with "diplay none" ?

It is, see this commit - https://github.com/svinkle/echo/commit/b0f8b346b480db0721d38c643e6e7b1112ad9226

Still thinking of the best way of integrating this, either with a display: none; or data-echo-ignore attribute.

cool Thx !