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

Change target selector from the init API

wadackel opened this issue · comments

Thank you for the very nice library!
I want to add an option that can change the target selector from the outside of the library.

The following is an example of the API.

echo.init({
  selector: 'img[data-echo], iframe[data-echo], [echo-background]'
});

How do you like it?