How do I abort image

前端 未结 7 2078
盖世英雄少女心
盖世英雄少女心 2020-11-29 01:23

I have a very long page that dynamically loads images as users scroll through.

However, if a user quickly scrolls away from a certain part of the page, I don\'t want

7条回答
  •  眼角桃花
    2020-11-29 02:10

    The solution could be a webworker. a webworker can be terminated and with him the connection. But there is a small problem that the webworker uses the limited connections of the browser so the application will be blocked.

    Right now I'm working on a solution with serviceWorkers - they don't have a connection limit (I hope so)

提交回复
热议问题