1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

JavaScript: Fallback on Local jQuery If CDN Fails

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    5.00/5

JavaScript » Using Third Party Libraries — almost 6 years ago
If CDN jQuery fails to load your jQuery will not load and some of your website features will no longer work. Therefore you need a way to load a local jQuery file if for some reason your CDN jQuery fails to load. Use the following snippet you can download jQuery from the Google CDN if it fails then you will use a local version.

Comments

Your Comment

You must be logged in to post a comment.