I'm just starting to delve into JavaScript so please bear with me as I learn.
Whenever there is a need for intensive calculations, it often involves recursive loops. These loops may encompass multiple functions that traverse the entire DOM tree, read positions, and perform collision detection logic or other operations.
Instead of having each function wait for the previous one to finish its calculations, why not launch these nested loops separately outside of the main program? This way, another loop can act on their results at a slower pace without being bogged down by performing the calculations itself.
Do you think this approach is unconventional or innovative?
Thank you in advance!