How to fix the “pending” status in Chrome Developer Window?

荒凉一梦 提交于 2019-12-04 23:54:01

This is due to the Ad-block or some plugin you are using with the chrome. Disabling the ad-block/plugin which blocks the requests will fix your issue. It blocks all the requests and so it is pending.

Try to fix this way and share the status.

Are you using HTTPS on the site?

If you are, chrome blocks http requests within https websites and shows a gray shield near the bookmark star on the url bar.

If this is the case just include your external stuff without specifying protocols

Example:

Change

http://domain.com/some.js to //domain.com/some.js

Santiago Angel

Answer repeated from this question.

I had the same issue on OSX Mavericks, it turned out that Sophos anti-virus was blocking certain requests, once I uninstalled it the issue went away.

You can also try disabling extensions in chrome to see if that helps, if so you'll know an extension is causing the problem. Use the '--disable-extensions flag to see if it fixes the problem.

I was using AngularJS as a front-end framework for my app, and somehow $httpProvider.defaults.withCredentials = true; made all my POST requests pending. After I removed this line, everything run instantly.

Sometimes the script takes more time in loading while the system has moved on. so make sure you wait for get to give you response before you manipulate it. so rather then doing following

var temp;
$.get('path/to/filename.ext',function(data){

temp = data;

}
//use temp

do this

    var temp;
$.get('path/to/filename.ext',function(data){
temp = data;
//use temp
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!