I'm building a simple web-based dashboard system.
I have a simple html which uses jQuery ajax to call my server:
$( document ).ready(function() {
var url = "...";
$.ajax({url : url, type : 'get'})
.done(successFunction)
.fail(errorFunction);
});
I noticed that sometimes the request is stalled and stays Pending
for a long time.
After googling and seeing this and that issues, I disabled the "Use a prediction service to load pages more quickly" flag in Chrome settings and the problem was solved.
However, I need to find a way to disable this flag programmatically (perhaps by adding a request header to my ajax call?), so my users will not experience this problem.
The Chrome setting I manually disabled appears in this image: