?
Solved

Not sure why lazy loading isn't working

Posted on 2013-06-10
8
Medium Priority
?
513 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 10

Accepted Solution

by:
Ishaan Rawat earned 2000 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 10

Expert Comment

by:Ishaan Rawat
ID: 39237492
no the shoes images...
0
WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

 
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 10

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 10

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

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…
Suggested Courses

764 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