I'm writing a script loader Chrome extension that will augment the console to allow users to load in scripts from external urls. My core function works something like this:
__('jquery', 'underscore.js', 'backbone.js', function() {
$('body').append($('<p>').html('I can use jQuery now!'));
});
What I'm wondering is basically what order Chrome content scripts get loaded into the document and if they can be accessed by external scripts? Would it be possible, for example, to call the same code above from the document itself, rather than from the console, or will the script be executed prior to the insertion and execution of my Chrome extension's content script?