Preload and prefetch are both used to request resources in advance so that later resource loading can be quick. It seems that I can interchange the two
<link rel="preload" href="foo.js" as="script">
<link rel="prefetch" href="foo.js">
without noticing anything difference.
What are their differences?