Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!