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

202
Vistas
<link rel="preload" as="script" href=".."> vs <script src="..." />

What is the difference between:

<link rel="preload" as="script" href="..">

and

<script src="..." />

Is rel="preload" really needed in the first example?

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

0

The first one asks the browser to download a script, but not execute it.
In case it is requested somehow, the browser can simply load it from cache.

The second one downloads a script and executes its content.

If you use link, you need to fill rel as preload. You can't embed js via link.
With link you ask the browser to cache something, because you might need it soon.

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