![]() ![]() This makes it the perfect substitute for a modern setTimeout() and setInterval(). ![]() JavaScript's setTimeout() and setInterval() are evil and not precise:īoth functions have a delay of a varying quantity of milliseconds.īoth functions are very resource-intensive because they execute several times every second.Ī new alternative is window.requestAnimationFrame(), which is less resource-intensive, disabled on page blur, and does not slow down other stuff.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |