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

前端 未结 5 1693
旧时难觅i
旧时难觅i 2021-02-19 04:30

When I try to include social media scripts into my page, I get the \"pending\" status in Chrome on some computers (not all of them):

相关标签:
5条回答
  • 2021-02-19 05:05

    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.

    0 讨论(0)
  • 2021-02-19 05:07

    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

    0 讨论(0)
  • 2021-02-19 05:24

    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.

    0 讨论(0)
  • 2021-02-19 05:27

    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
    }
    
    0 讨论(0)
  • 2021-02-19 05:31

    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.

    0 讨论(0)
提交回复
热议问题