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

167
Views
How can I preload <script type="module"> on Firefox?

I'm in a bit of a pickle - I am attempting to have an essential script and its dependencies preload on my SPA app.

The setup I have is roughly:

<head>
...
<link
  rel="preload"
  href="/app.js"
  as="script"
  crossorigin="anonymous"
/>
<link
  rel="preload"
  href="/dependency.js"
  as="script"
  crossorigin="anonymous"
/>
...
</head>
<body>
...
<script src="/app.js" type="module"></script>
...
</body>

This works excellently for Safari and Chromium derivatives (as evidenced by the Network developer panel), but not Firefox. I am greeted with the console hint ...Make sure all attributes of the preload tag are set correctly. If rel="modulepreload" is used, it works on Chromium and Firefox, but not Safari (this property seems new / not well supported).

Am I missing something? I feel like I'm looking over something very simple, and for the life of me I cannot get it to work on Firefox. Any pointers are much appreciated.

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!