A few days ago, I found a strange thing for me: after clicking the jump link, the newly opened page appeared abnormal (originally intended to jump directly to the web version of QQ, the result was blank). I clicked F12, and saw a red request, oh, it turned out that there was a request failed, then I took a closer look… The request returns status canceled, which is canceled.

Browser can’t you just send a request? When I calmed down, I went to SF to find the answer. After several hyperlinks, I came to a page full of English. Although MY English was not bad, I was restless and closed Orz without looking at it. (At that time I just want to be a brainless hand party… I wish someone could explain it to me vividly…) Finally went to ask for help from a good friend, just know the answer to this question, do not keep in suspense, to answer first.


Top response on Stack Overflow:


Make a point:

  • The DOM element that caused the request to be made got deleted (i.e. an IMG is being loaded, but before the load happened, you deleted the IMG node)

  • You did something that made loading the data unnecessary. (i.e. you started loading a iframe, then changed the src or overwrite the contents)

  • There are lots of requests going to the same server, and a network problem on earlier requests showed that subsequent requests weren’t going to work (DNS lookup error, earlier (same) request resulted e.g. HTTP 400 error code, etc)


According to the above, browsers kill requests for three reasons:

  • The DOM element that made the request was deleted. (eg: an IMG element node that was unfortunately deleted before the image was loaded)

  • The developers did something that made loading data unnecessary. (Eg: You load an iframe and then directly change SRC or rewrite the content with document.write)

  • There are a large number of requests directed to the same server, and the error of the previous request indicates that the same subsequent request will not work (DNS query error, or the first one with an error for the same request, such as 400 status code).

After this event, not only get a new posture, but also more importantly get reflection. Thanks to my good friend Leilei with practical action to tell me: avoid impetuous.



But not every story has a happy ending

I mentioned the problem of white screens at the beginning

It hasn’t been solved yet

Stranger still…

Colleagues around have said that this page is no problem…

I don’t have a host either…

But you can basically lock it down

It’s my end of the line…

If you’ve ever been in a similar situation…

May I ask your advice…