Return to Snippet

Revision: 68730
at February 17, 2015 03:35 by a1ias


Initial Code
<script>
  if(typeof window.jQuery === 'undefined') {
    document.write(
      unescape("%3Cscript src='js/jquery.js' type='text/javascript'%3E%3C/script%3E")
    );
  }
</script>

Initial URL
http://habrahabr.ru/post/250663/

Initial Description
Check if jquery was loaded from CDN. If not, load it from own website.

Initial Title
Check if jquery was loaded from CDN

Initial Tags
jquery

Initial Language
JavaScript