Why is javascript paused by long clicking on an Android or iOS device?

When I press or scroll on the screen of an Android or iOS device for a long time, Javascript running in web pause pauses. How can I run js, and besides why in this case js pause?

+4
source share
1 answer

This post has a similar question / answer, I believe that this is purely a performance optimization, since scrolling will require the browser to redraw / draw the DOM: it will be a lot of resources. As for long-term printing, this may be due to the browser awaiting an understanding of what needs to be done next, i.e. Selecting an area to copy / paste or launch the context menu of browsers.

0
source

Source: https://habr.com/ru/post/1446890/


All Articles