I'm could not find anywhere answer to question that poped out to me: if web components are able to create a new code execution context where code runs on it's own thread or do those components share the host execution context?

Does running code that is blocking main thread in web component would block the host thread also?

有帮助吗?

解决方案

Does running code that is blocking main thread in web component would block the host thread also?

The execution context is a call stack composed of custom element queues:

To facilitate invoking callbacks, each unit of related similar-origin browsing contexts has a processing stack, which is initially empty. Each item in the stack is an element queue, which is initially empty as well. Each item in the element queue is a custom element.

References

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top