search

Home  >  Q&A  >  body text

javascript - The image link request is always in the pending state, causing the page to crash. How to solve it?

When requesting the interface, the image link is returned. When the image link is read, it is always in the pending state. Neither the success status code nor the failure status code is returned, and it remains in the pending state. Long-term pending causes the page to crash. How to solve it?

阿神阿神2733 days ago1261

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-06-05 11:15:58

    This should be a background problem. There is no response in the background, causing the request to time out. If you want to process it, it is recommended to set a timeout, or set a placeholder image on the page, wait until the image that needs to be replaced is loaded, and then replace it

    reply
    0
  • Cancelreply