jquery - any javascript event for loading external JS on-the-fly? -
I am working on a bookmarklet project which loads the external jQuery.js file like this: < Pre> But when I try to use jQuery after this, I get: On Chrome JS Console Is there any "event" that is called when a domain instance loads? (Or an event that triggers when an external JS file loads like this?) Thanks! jq_script = document.createElement ('SCRIPT'); Jq_script.type = 'text / javascript'; Jq_script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js'; Document.getElementsByTagName ('head') [0] .appendChild (jq_script);
Unwanted reference references: jQuery is not defined < / Code>
Comments
Post a Comment