Using YUI to load jQuery

by Derek Gathright

JavaScript

YUI({
    modules: {
        'jquery': {
            fullpath: 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'
        }            
    }
}).use('jquery', function (){
    if ($) {
        alert('I haz a dollar sign');
    }
});