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

Apply echo for specific images only

AndrewEastwood opened this issue · comments

If I had any collection of BB views and each has own image then how can I init the echo for image for each view only?

Say your markup looks like this

<div class="one">
<img data-src="cat.png">
</div>
<div class="two">
<img data-src="cat.png">
</div>

You could only render the images in "one" via

echo.render( '.one' )