title: how to handle javascript loading error in web application which uses facebook javascript sdk
body: <p>I am integrating a web application with facebook by following <a href="http://thinkdiff.net/facebook/new-javascript-sdk-oauth-2-0-based-fbconnect-tutorial/" rel="nofollow">this tutorial</a></p>
  
  <p>It is normally working but when AVG do not track is active the browser can't load the Facebook JavaScript SDK so I want to show the user that in such a case he needs to disable the AVG do not track for the current website..</p>
  
  <p>Is there a way to handle the loading error in JavaScript? We have try catch in Java - is there something similar in JavaScript so that I can hadle the loading error.</p>
  
  <p>Sorry if this is a simple question ... I am a noob when it comes to JavaScript :(</p>