Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 395
  • Last Modified:

Javascript break point?

I have this code below and my manager said to do 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.    

I think the JS code needs to go before <script> below but not sure what a JS break point is...is it an alert??

Not sure how to do this...this is the code I have

<body>
<html>
.....

<img src="http://site/m0gl3_nb_02_i?$dw_prodtile_md$" class="lazy" alt="990v3, Grey with White" title="M0GL3">

<script>$("img.lazy").lazyload();</script>
</body>
</html>

Open in new window

0
Camillia
Asked:
Camillia
  • 2
1 Solution
 
Ishaan RawatDesigner | Developer | ProgrammerCommented:
Check this video...

http://www.youtube.com/watch?v=htZAU7FM7GI

See how to add breakpoints...

After you have learnt how to add breakpoints add break point before an image which is loaded by lazy load...

and if the image is not loaded that means you r plugin is working perfectly...
0
 
CamilliaAuthor Commented:
Good video but it says the page has to be erorr free. Another developer is working on it to fix the bugs. I did put an alert ("test"); in the lazyload jquery and it does get called. I was afraid it's not being called at all but it does. So, i think this is working...

I did try large images but because this is a vendor app...i couldnt get the images to load.
0
 
Ishaan RawatDesigner | Developer | ProgrammerCommented:
Ok.. !!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now