Commit

Put the stylesheet at the top of the head, before React Router's preloads

syntaqxcommitted Parent018020aBrowse files
1 file+3−30/1 viewed
+3−3
6363
6464
6565 export const links: Route.LinksFunction = () => [
66− // The stylesheet first, ahead of the fonts and module preloads, so a slow
67− // connection paints sooner (docs/research/css-shipping.md).
68− { rel: "stylesheet", href: appCss },
6966 { rel: "icon", href: "/favicon.ico", sizes: "32x32" },
7067 { rel: "icon", type: "image/svg+xml", href: "/favicon.svg" },
7168 { rel: "icon", type: "image/png", sizes: "192x192", href: "/icon-192.png" },
470467 <meta charSet="utf-8" />
471468 <meta name="viewport" content="width=device-width, initial-scale=1" />
472469 <meta name="theme-color" content="#0f0f11" />
470+ {/* The stylesheet before everything React Router preloads, so a slow
471+ connection paints sooner (docs/research/css-shipping.md). */}
472+ <link rel="stylesheet" href={appCss} />
473473 <Meta />
474474 <Links />
475475 </head>