Solved

Not sure why lazy loading isn't working

Posted on 2013-06-10
8
481 Views
Last Modified: 2013-06-11
I've spent most of the day on this and still don't know why lazyloading doesnt work...

I right clicked, selected "inspect element". Looked at the Network tab but looks like the images all get loaded at page load...

Not sure the way I'm loading the lazyload is wrong or what. Can someone take a look at this?

Thanks for any help you can offer...

http://dev07.web.newbalance.demandware.net/on/demandware.store/Sites-newbalance_us-Site/undefined/Search-Show?cgid=101000
0
Comment
Question by:Camillia
  • 4
  • 4
8 Comments
 
LVL 9

Accepted Solution

by:
Ishaan Rawat earned 500 total points
ID: 39236678
You know why its not working....

Because your images ares o small about 11.6 kbs...
which loads in milliseconds...

Thats why you are not able to see the image loading...

try it with a bigger size image... then see if its working or not...
0
 
LVL 7

Author Comment

by:Camillia
ID: 39237481
Where did you see the images are 11.6 (small)...in Netwrok tab?

Is there a way to slow down the page load to see if it's working...lazyload has threshold..can that be used? http://www.appelsiini.net/projects/lazyload

How can I do this..it's from my manager:
- basically the lazy load works after the page loads. Try this - do a javascript break point prior to where you do the lazy load call... See if you can see the images NOT being loaded, that will be a good test.  

How can I add that JS break?
0
 
LVL 9

Expert Comment

by:Ishaan Rawat
ID: 39237492
no the shoes images...
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 7

Author Comment

by:Camillia
ID: 39237518
Yeah, do u know how to do this? if not, i'll open another question. Thanks

How can I do this..it's from my manager:
- basically the lazy load works after the page loads. Try this - do a javascript break point prior to where you do the lazy load call... See if you can see the images NOT being loaded, that will be a good test.
0
 
LVL 9

Expert Comment

by:Ishaan Rawat
ID: 39237544
Or you can do this....

apply lazy load to your website...

Add 8, 9 large size images...
one after the other...

and see if the images load after you scroll on them... then lazy load is working perfectly....
0
 
LVL 7

Author Comment

by:Camillia
ID: 39237707
this is a vendor app...so i cant easily make changes. I'll close this question and open another one with my question above. Thanks
0
 
LVL 9

Expert Comment

by:Ishaan Rawat
ID: 39237714
Ok...
As you wish./..
0
 
LVL 7

Author Comment

by:Camillia
ID: 39237789
i think i found a large image to try...from vendor. I know I've closed this question, but i'll see if i can try it.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now