Is there is a better way to iterate a function within an interval which consume least amnt of memory | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Is there is a better way to iterate a function within an interval which consume least amnt of memory

Because I listen about setInterval(...,...); that it consumes too much memory and dont found while loop soo productive to move a object or HTML element in my Webpage So can u suggest me a better way to do that??? 🙏🙏🙏🙏

11th May 2020, 1:44 PM
Abhay
Abhay - avatar
1 Antwort
+ 1
setInterval would not consume too much of memory, unless you created consume memory triggered event function.
11th May 2020, 2:13 PM
Calviղ
Calviղ - avatar