Using this within Firefox gives the following error: Uncaught ReferenceError: setImmediate is not defined
According to these documentation this is a non-standard feature. In fact most-likely no browser (except MS Edge) supports it.
So I wonder if this problem could be solved using something else like plain setTimeout. Thanks for any feedback. 🙃