Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

131
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda