Javascript multiple Dynamic Insertion
When we do dynamic insertion for javascript, sometimes order matters. We sometimes solve this by using onload property; however, if there are many external javascripts, and those scripts has to be loaded in order, then what should we do? I solved this problem by recursively defined onload functions; however not so sure about efficiency... since this is a script, I think it does lazy eval.... Any help? //recursively create external javascript loading chain //cautiously add url list according to the loading order //this function takes a list of urls of external javascript function loadScript(url