Possible Duplicate:
Difference Between $.getJSON() and $.ajax() in jQuery
super simple question.... between .getjson and .ajax() json which is faster?
considering retrieving and parsing data.
Much thanks.
Possible Duplicate:
Difference Between $.getJSON() and $.ajax() in jQuery
super simple question.... between .getjson and .ajax() json which is faster?
considering retrieving and parsing data.
Much thanks.
I had a similiar question, and wanted to point out the following documentation in JQuery.ajax:
.getjson()
calls.ajax()
, so they should be equivalent.Same thing.
getJSON()
is a shorthand for.ajax(..)
with specific parameters.To quote the documentation of
.getJSON()
:jQuery.getJSON()
uses the samejQuery.ajax()
call finally, so there are no speed differences.