Solved

Javascript break point?

Posted on 2013-06-11
3
390 Views
Last Modified: 2013-06-11
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
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
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Ishaan Rawat earned 500 total points
ID: 39237802
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
 
LVL 7

Author Comment

by:Camillia
ID: 39238240
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
 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39238549
Ok.. !!
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
This article discusses how to implement server side field validation and display customized error messages to the client.
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…

751 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