This could be useful in situations where you have a queue of tasks to run (such as calls to an API on each keypress), and you want to give control back to the main thread regularly to allow the page to respond to further user interaction.
Feels like sites will be more and more like standalone applications which need to return control regularly... 😢
Feels like sites will be more and more like standalone applications which need to return control regularly... 😢
The web is far too complex these days 😅 But the possibilities are endless!
Swings and roundabouts I guess!