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

203
Views
<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 answers
Answer question

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 Report
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!