jquery ajax slow response in Google Chrome
ajax, google-chrome, jquery
Solution
If you are not loading the content of the `.post()` on a dynamic generated element try putting it inside `window.onload` instead of `$(document).ready`, that had worked for me. Hope it helps!
Update
Being the `post()` fired with a click() event, the parent element needs to be ready. But you might win some time if you call the `post()` function outside your `$(document).ready` and save the results to a `javascript` variable. That will act as some kind of `initialValue` which you will need to update from the second time the user click on your element.
Problem
I am developing my site by Java. I am using jquery, ajax, like this: ``` $.ajax({ dataType: "json", url : 'getWords.htm', type: 'post', async : false, data : {dataJSON : JSON.stringify(dataJSON)}, success : function(words) { ..... } }); ``` It is working well, but in Chrome it work slowly than Firefox, IE and Opera. In Chrome I have a little delay (about 0.8 sec). When I have four ajax query per one click it is really slow. How do I can fix it? In firebug I see: sending 5ms, waiting 512ms, receiving 3ms, but in other browsers all the fast. Thanks.