Conditionally Loading jQuery


/ Published in: HTML
Save to your folder(s)

if window.jQuery is undefined, there must have been a problem downloading the script from the CDN. In that case, proceed to the right side of the && operator, and insert a script linking to a local version of jQuery.

URL: http://net.tutsplus.com/tutorials/javascript-ajax/14-helpful-jquery-tricks-notes-and-best-practices/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.