[jQuery] best practice using jquery.ajax

2007-01-17 Thread byan
dear all, i'm using $(elm).load(url, function() {...}) to insert new content, but i found this cost me extra 3-5 times than using standar ajax methods, and then insert responseText to elm using innerHTML. inserting simple content, using standard ajax cost me 0.2s but using jquery cost me 1.1s

Re: [jQuery] best practice using jquery.ajax

2007-01-17 Thread Blair McKenzie
What kinds of select strings are you using ( $(in here) ). This can have a big impact on speed. Blair On 1/18/07, byan [EMAIL PROTECTED] wrote: dear all, i'm using $(elm).load(url, function() {...}) to insert new content, but i found this cost me extra 3-5 times than using standar ajax

Re: [jQuery] best practice using jquery.ajax

2007-01-17 Thread Blair McKenzie
Actually, using an id is as good as it gets. Sorry, that's the only thing I could think of that would effect the speed so much. Blair On 1/18/07, byan [EMAIL PROTECTED] wrote: i have page like this body div id=cleft/div div id=cmain/div div id=cright/div /body new content always fetch into