Complete the code to prefetch a page in Astro.
<a href="/about" [1]>About</a>
In Astro, adding prefetch to a link tells the browser to fetch the page in advance.
Complete the code to preload a stylesheet in Astro.
<link rel="[1]" href="/styles.css">
To preload a stylesheet, use rel="preload" with the appropriate as attribute (not shown here).
Fix the error in the prefetch link attribute.
<a href="/contact" rel="[1]">Contact</a>
The correct way to prefetch a page link is to use rel="prefetch". Combining 'prefetch preload' is invalid.
Fill both blanks to preload a font correctly.
<link rel="[1]" href="/fonts/myfont.woff2" as="[2]" type="font/woff2" crossorigin>
Fonts should be preloaded with rel="preload" and as="font" to tell the browser the resource type.
Fill all three blanks to prefetch a script with correct attributes.
<link rel="[1]" href="/scripts/app.js" as="[2]" crossorigin=[3]>
To prefetch a script, use rel="prefetch", as="script", and set crossorigin="anonymous" for CORS.
