paint-brush
jQuery is Not Defined: How to Fix This Common Errorby@bugsnag
2,462 reads
2,462 reads

jQuery is Not Defined: How to Fix This Common Error

by Bugsnag1mFebruary 22nd, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

If your web app relies on jQuery, it can make your JavaScript code unusable. The most obvious cause of this error is that you forgot to include jQuery before you used it. There are also more subtle causes that you’ll not see until you deploy your site to production. You can easily provide a locally-hosted fallback version of jQuery as follows: First try loading jQuery from Google's CDN. If the CDN fails load, it will almost certainly load fine from your own domain. If you have a.jQuery-rails gem, which automates this fallback process for you.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - jQuery is Not Defined: How to Fix This Common Error
Bugsnag HackerNoon profile picture
Bugsnag

Bugsnag

@bugsnag

The leading application stability management solution trusted by over 6,000 engineering teams worldwide.

L O A D I N G
. . . comments & more!

About Author

Bugsnag HackerNoon profile picture
Bugsnag@bugsnag
The leading application stability management solution trusted by over 6,000 engineering teams worldwide.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here