문제

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