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

Fails to load images already in viewport

steverob opened this issue · comments

I have some images that are already on the viewport. But it does not lazy load them, it loads all the images below the viewport when I scroll.

These images that were originally in the viewport are left as it is. Any pointers? Thanks!

Have you tried calling .apply() on page load/DOM ready?

On 7 May 2014 07:24, Steve Robinson notifications@github.com wrote:

I have some images that are already on the viewport. But it does not lazy
load them, it loads all the images below the viewport when I scroll.

These images that were originally in the viewport are left as it is. Any
pointers? Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/44
.

Todd Motto | +44 7557 149 519
Lead front-end engineer
toddmotto.com | @toddmotto

Hi Todd
Thanks for the tip. I'll try that and get back to you. Thanks!

Regards
Steve Robinson

On 07-May-2014, at 2:16 pm, Todd Motto notifications@github.com wrote:

Have you tried calling .apply() on page load/DOM ready?

On 7 May 2014 07:24, Steve Robinson notifications@github.com wrote:

I have some images that are already on the viewport. But it does not lazy
load them, it loads all the images below the viewport when I scroll.

These images that were originally in the viewport are left as it is. Any
pointers? Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/44
.

Todd Motto | +44 7557 149 519
Lead front-end engineer
toddmotto.com | @toddmotto

Reply to this email directly or view it on GitHub.