diff --git a/examples/remix/app/routes/_index/route.tsx b/examples/remix/app/routes/_index/route.tsx index b91fae5..106e6ed 100644 --- a/examples/remix/app/routes/_index/route.tsx +++ b/examples/remix/app/routes/_index/route.tsx @@ -1,4 +1,4 @@ -import type { MetaFunction } from "@remix-run/node"; +import type { LinksFunction, MetaFunction } from "@remix-run/node"; import archiveBoxArrowDownIconHref from "~/assets/archive-box-arrow-down.svg"; import beakerIconHref from "heroicons/24/outline/beaker.svg"; import eyeIconHref from "lucide-static/icons/eye.svg"; @@ -13,6 +13,17 @@ export const meta: MetaFunction = () => { ]; }; +export const links: LinksFunction = () => { + return [ + { + rel: "preload", + as: "image", + href: spriteUrl, + type: "image/svg+xml", + }, + ]; +}; + export default function Index() { return (