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

178
Vistas
The async attribute is ignored if the <script> tag has no src?

The async attribute is ignored if the tag has no src? Because defer is, but i cant fin information about async.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This attribute affects javascript fetching. If you have no src there is nothing to fetch.

Also you can do a simple test to check how it works. Spoiler: it doesn't do anything as expected.

<script>
  console.log("sync 1")
  console.log(document.getElementById('test') != null)
</script>

<script async>
  console.log("async")
  document.write('<div id="test"></div>')
</script>

<script>
  console.log("sync 2")
  console.log(document.getElementById('test') != null)
</script>

about 4 years ago · Juan Pablo Isaza Denunciar
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