Interesting:
A tiny #JavaScript utility to "process large loops in a non-blocking way by yielding periodically, ensuring your UI stays responsive even under heavy iteration".
https://github.com/verlok/yieldy-for-loop
More: https://www.andreaverlicchi.eu/blog/introducing-yieldy-for-loop/