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

157
Vistas
Loading external scripts defined in index.html only after angular app is done loading

Current Scenario: I've around 20+ & tags in my index.html file, which are actually interfering with the other scripts and assets being loaded by angular, leading to a not-so-good user experience.

Desired Behavior: I need these external scripts to be loaded only after all the angular assets and files used on the homepage are loaded.

index.html

<html>
<head>
 //meta & link tags
</head>
<body>
   <app-root></app-root>
   // Here I've the script tags with defer like one below
   <script defer src="https://www.googletagmanager.com/gtag/js?id=DC-10365329"></script>
</body>
</html>

I tried using defer but after build, angular is appending the bundle files at the end in the body. So, the problem remains the same. Snapshot of the network tab

Is there any way I can have all the bundle files loaded and executed first?

Thanks

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