RequireJS + jQuery
by anandhinava
HTML
<script src="http://requirejs.org/docs/release/1.0.1/minified/require.js"></script>
JavaScript
//Only the jquery vaiable is present the body execution will work
requirejs.config({
"paths": {
"jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min"
}
});
require(['jquery'], function($) {
$('body').append('<h1>RequireJS + jQuery</h1>');
});