{"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":"NATIVE FETCH","Code":"var request = fetch(newUrl).then(showResult);","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":"JQUERY 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 GET 2","Code":"var request = $.get(newUrl).done(showResult);","IsDeferred":false},{"Name":"JQUERY GETJSON","Code":"$.getJSON(newUrl, null, showResult);","IsDeferred":false}]}