Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

134
Visualizações
What's the specific point when the Event Loop must get executed?

The WHATWG spec defines algorithm steps describing how the event loop is processed. However, I find it not easy to discover the place(s) in the spec when these steps get execution. To put it in other words, when, specifically, the event loop gets run?

From internet papers and SO answers I know that it should happen just after the currently running JS script come to its end, but I am a bit confused by these words from the spec:

An event loop must continually run through the following steps for as long as it exists

How the notion of continual event loop running can be related to the fact that no task can get execution during the time the "high level" script (that inside <script>) is running?

Does it mean this script itself is a task scheduled in the event loop? Still, I can't find prove in the spec.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda