优化网页性能,减少加载时间
<link rel="preload" href="styles.css" as="style">
<link rel="preload" href="script.js" as="script">
<link rel="preload" href="font.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="prefetch" href="next-page.js">
<link rel="dns-prefetch" href="//cdn.example.com">
<link rel="preconnect" href="https://cdn.example.com">
<link rel="prerender" href="https://example.com/next-page">
<script src="script.js" async></script>
<script src="script.js" defer></script>