$.getJSON vs $.load (v4)

Revision 4 of this benchmark created on


Description

jQuery $.getJSON() vs $.load

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="content">
</div>

Test runner

Ready to run.

Testing in
TestOps/sec
$.getJSON()
$.getJSON('http://kk.com/testjson.php', function(data) {
  $('#content').html(data.content);
});
ready
$.load
$('#content').load('http://kk.com/testjson.php');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.