When I use the jQuery ajax function and the response is pretty big ~ 1mb, ui freezes just before the success function is called. I experienced this with the JSON.parse function and parsing a lot of data. I believe this function is used when returning a request to format the content in JSON. Here is the code I'm using.
$.ajax({ url: "/sessions/" + this.get("session_id") + "/get_sample_data", data: params, dataType: 'json', type: "GET", success: function (response) { success(response); } });
In any case, in order to override the code for the answer, so that I can stagger the parsing to pieces and, hopefully, minimize the lock on ui? or is there another way to fix this. I use chrome and chrome canary and I get the same result in both.
Thanks in advance
performance json javascript jquery
georgephillips
source share