S
S
Serik2017-03-03 14:53:29
JavaScript
Serik, 2017-03-03 14:53:29

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

1 answer(s)
D
developer007, 2017-03-03
@developer007

requestIdleCallback
https://developers.google.com/web/updates/2015/08/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question