Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The first screen image cannot be loaded correctly #195

Closed
kxbrand opened this issue May 7, 2014 · 10 comments
Closed

The first screen image cannot be loaded correctly #195

kxbrand opened this issue May 7, 2014 · 10 comments

Comments

@kxbrand
Copy link

kxbrand commented May 7, 2014

The first screen image cannot be loaded correctly

If the HTML page layout is such:


<div class="section" style="width:1000px;">
     <div class="article" style="width:500px;float:left;">
           <div class="text">text.....,More than one screen</div>
           <div class="img">
              <img class="j-lazy" src="/images/t.gif" data-original="/images/test/2.jpg" width="250" height="160" />
              <br/>
              <img class="j-lazy" src="/images/t.gif" data-original="/images/test/2.jpg" width="250" height="160" />
           </div>
      </div>
      <div class="side" style="width:300px;float:right;">
          <img class="j-lazy" src="/images/t.gif" data-original="/images/test/2.jpg" width="250" height="160" />
      </div>
</div>

The left picture on second screen, while the right picture on first screen, the right screen images can't be loaded correctly.

@tuupola
Copy link
Owner

tuupola commented May 7, 2014

URL of the page you have problem with?

@kxbrand
Copy link
Author

kxbrand commented May 7, 2014

Just a minute, please!

@tuupola
Copy link
Owner

tuupola commented May 7, 2014

Bind plugin separately to div.articleand div.side.

$("div.article img.j-lazy").lazyload({ ... });
$("div.side img.j-lazy").lazyload({ ...) });

@kxbrand
Copy link
Author

kxbrand commented May 7, 2014

Yeah, if i put the side code in front of the article code, can be loaded correctly

@kxbrand
Copy link
Author

kxbrand commented May 7, 2014

So,I want to know whether this plugin with HTML text stream loading sequence?

@kxbrand
Copy link
Author

kxbrand commented May 7, 2014

I am sorry,my english is very poor,thank you!

@tuupola
Copy link
Owner

tuupola commented May 7, 2014

No. This is for Lazy Loading images. I guess you are looking for infinite scrolling.

@kxbrand
Copy link
Author

kxbrand commented May 7, 2014

But from the demo, HTML text stream did affect to lazy load images

@tuupola
Copy link
Owner

tuupola commented May 7, 2014

What demo do you mean?

@tuupola
Copy link
Owner

tuupola commented May 7, 2014

I do not understand the question, but I already answered above:

Bind plugin separately to div.articleand div.side.

$("div.article img.j-lazy").lazyload({ ... });
$("div.side img.j-lazy").lazyload({ ...) });

@tuupola tuupola closed this as completed May 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants