Quantcast
Viewing all articles
Browse latest Browse all 3491

Re : Can you use a page's existing jQuery in steal?

My dummy jquery.js is now this:

  1. if (window.jQuery) {
        steal(function() {
            return window.jQuery;
        })
    } else {
        steal('../jquery.min.js', function() {
            return $;
        });
    }

It works.  Build and dev.  The only weirdness is the extra 138 byte GET steal makes to this file to get window.jQuery.


Viewing all articles
Browse latest Browse all 3491

Trending Articles