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
Solved

Not sure why lazy loading isn't working

Posted on 2013-06-10
8
483 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 10

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 10

Expert Comment

by:Ishaan Rawat
ID: 39237492
no the shoes images...
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

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

Suggested Solutions

Title # Comments Views Activity
jQuery Dialog Autoresize Bug 2 25
jquery tab header text 1 23
Character counter breaks after adding EmojiOne Area 4 23
Only allow one check box 17 27
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

838 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