Performance issues

Sep 30, 2010 at 1:54 AM

I'm having performance issues with this
is there away to fix this

is it possible to do $(this).find("LoginName") instead of attr?

 

for(i=0; i<out.length; i++) {
$().SPServices({
    operation: "GetAllUserCollectionFromWeb",
    webUrl: "out[i]",
    completefunc: function (xData, Status) {
$(xData.responseXML).find("User").each(function() {
 
     
      testaccount[i]=$(this).attr("LoginName");
     i++;


});
     }
 });

}

Coordinator
Sep 30, 2010 at 2:38 AM
My guess is that the performance issue is more with the loop for 'out'. How many webs are you looping through? Try to get it working for one web and optimize that. Then add in the looping. M.