[jQuery] Does .ready() waits for .getScript() ?
Hey "jquerians",
I'm trying to load 2 external .js with .getScript() before the .ready() function, I read in the 1.2 roadmap this could be done, but I can't make it work.
Am I missing something?
<a href="http://docs.jquery.com/JQuery_1.2_Roadmap#.ready.28.29_waits_for_.getScript.28.29">http://docs.jquery.com/JQuery_1.2_Roadmap#.ready.28.29_waits_for_.getScript.28.29</a>
$.getScript('/inc/jquery/jquery.media.js');
$.getScript('/inc/swfobject.js');
$(document).ready(function(){
console.log(typeof $.media, typeof deconcept);
});<br clear="all">
Regards,
--
Joan Piedra || Frontend web developer
<a href="http://www.justaquit.com/">http://www.justaquit.com/</a> || <a href="http://www.joanpiedra.com/">http://www.joanpiedra.com/</a>