rsnext/test/integration/css-fixtures/composes-ordering/pages/index.js
Joe Haddad e9054744d8
Load CSS early instead of only preloading (#18846)
While we were fixing how Next.js handled CSS, we added a complex prefetch, preload, fetch sequence to acquire the CSS asset.

This unnecessarily overcomplicated what could've been only a `fetch()` from the very start!

---

Fixes #16932
2020-11-06 16:24:02 +00:00

16 lines
325 B
JavaScript

import Link from 'next/link'
import css from './index.module.css'
export default function Home() {
return (
<main>
<Link href="/other" prefetch={false}>
<a id="link-other">other</a>
</Link>
<br />
<h1 id="black-title" className={css.header}>
Black
</h1>
</main>
)
}