Answer the question
In order to leave comments, you need to log in
How to execute the code when the browser is idle?
I stumbled upon the answer by accident, but now I can't remember. May not be available in all browsers.
Essence: a function is set for a delayed launch when the browser has free resources.
Answer the question
In order to leave comments, you need to log in
requestIdleCallback
https://developers.google.com/web/updates/2015/08/...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question