{"ScriptPreparationCode":"function showResult(data) {\r\n console.log(data);\r\n}\r\nvar newUrl = \u0022https://www.googleapis.com/discovery/v1/apis\u0022;","TestCases":[{"Name":"Native XHR","Code":"var xhr = new XMLHttpRequest();\r\nxhr.open(\u0022GET\u0022, newUrl, true);\r\nxhr.onreadystatechange = function() {\r\n if (xhr.readyState === 4) {\r\n showResult(xhr);\r\n }\r\n}\r\nxhr.send();","IsDeferred":false},{"Name":"Native XHR 2","Code":"var xhr = new XMLHttpRequest();\r\nxhr.onload = showResult;\r\nxhr.open(\u0022GET\u0022, newUrl, true);\r\nxhr.send();","IsDeferred":false},{"Name":"jQuery AJAX","Code":"var request = $.ajax({\r\n type: \u0022GET\u0022,\r\n url: newUrl,\r\n success: showResult,\r\n data: null\r\n});","IsDeferred":false},{"Name":"AJAX Async","Code":"var request = $.ajax({\r\n type: \u0022GET\u0022,\r\n async: true,\r\n url: newUrl,\r\n success: showResult,\r\n data: null\r\n});","IsDeferred":false},{"Name":"jQuery GET","Code":"var request = $.get(newUrl, showResult);","IsDeferred":false},{"Name":"jQuery GET2","Code":"var request = $.get(newUrl).done(showResult);","IsDeferred":false},{"Name":"jQuery GET JSON","Code":"$.getJSON(newUrl, null, showResult);","IsDeferred":false}]}