treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Check if jQuery is Loaded

Last updated on:

if (typeof jQuery == 'undefined') {

    // jQuery IS NOT loaded, do stuff here.

}
View Comments

Comments

  1. Permalink to comment#

    I usually do alert($);

  2. or

    alert(jQuery);

  3. Kennard Lim
    Permalink to comment#

    THanks. you are great. :)

  4. So simple, yet very effective.

    I’m enjoying your blog, thanks for the articles.

Leave a Comment

Use markdown or basic HTML and be nice.