3 ms·
See the second link in my comment (https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort https://developer.mozilla.org/en-US/docs/Web/API/Abort
by zamadatix 7y ago
See the second link in my comment (https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort https://developer.mozilla.org/en-US/docs/Web/API/AbortContro...). Determining if the image is in the viewport is easy, cancelling the async Fetch request after it's been made is an experimental API so not finalized/available everywhere.