JavaScript for loop that loads resources (Improve loading) -


i'm writing short script loops through array , loads each of results found although i'm having issues loading. if alert results found in each loop right data when attempt load data, fails.

var arrayscripts = new array (         'http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js',          'scripts/tiny_mce/tiny_mce.js',         'scripts/jquery.cycle.lite.js',         'scripts/javascript.default.js',         'scripts/jquery.default.js'     );      (var i=0; < arrayscripts.length; i++) {         scripts.add(arrayscripts[i]);     }     scripts.load(); 

i hope can see i'm doing wrong here. appears code inside of loop.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -