"I was just wondering if there were any performance differences"
.load, like *any* Ajax call in jQuery, ultimately uses the $.ajax
method, so other than a hit of one method calling another (which is
like nothing), there is no performance hit
On Oct 22, 4:55 am, Hogsmill wrote:
> Cheers, Richard
Cheers, Richard - very useful.
I usually use $.ajax because I return JSON, and, as you say, then I
start 'munging' :-) I like the load call (for straight content insert
applications) because it's way simpler and easier to read - I was just
wondering if there were any performance differences, etc
.load() is really nice if all you're doing is loading some content into an
element. It's a nice convenience method.
If you're going to take the results of the ajax call and maybe put different
parts of the content in different places, or do some manipulation or other
munging on it before you add i
3 matches
Mail list logo