I'm using jquery load()
to load multiple items. All works good.
for(i = 0; i<item.length; i++){
$( '#parent'+i).load('file'+i+'.html',function(){
customFunctions();
});
}
My question is, I need to run customFunctions()
when all completes loading. My above code runs it multiple times. How can I run customFunctions()
once only after all files complete loading?