Skip to content Skip to sidebar Skip to footer

Why Are Web Workers Not Allowed To Modify The Dom

I know web workers work as a separate thread than the UI thread but i dont understand why they are not allowed to modify the DOM. I mean that you can allow inter thread communicati

Solution 1:

Because the DOM is not threadsafe, and JavaScript does not expose a thread API.


See also:

Post a Comment for "Why Are Web Workers Not Allowed To Modify The Dom"