Skip to content

Instantly share code, notes, and snippets.

@douglasresende
Forked from jiahut/quick_to_dev_backbone.js
Created October 17, 2016 01:20
Show Gist options
  • Save douglasresende/8a087682d9c467d6c0355a77118821f0 to your computer and use it in GitHub Desktop.
Save douglasresende/8a087682d9c467d6c0355a77118821f0 to your computer and use it in GitHub Desktop.
require jquery and backbone in cosole and coding...
(function(undefined){
var _requirejs = document.createElement('script');
_requirejs.src = "http://requirejs.org/docs/release/2.1.5/minified/require.js";
_requirejs.type ="text/javascript";
document.head.appendChild(_requirejs);
setTimeout(function(){
require('http://code.jquery.com/jquery-1.9.1.min.js'.split(";"));
require('http://underscorejs.org/underscore-min.js'.split(";"),function(){
require('http://backbonejs.org/backbone-min.js'.split(";"))
});
},100);
}).call(this,undefined);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment