Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ultra/lib/client/asset.js>usePreload

💎 Next-gen browser/server fluid React framework
Go to Latest
function usePreload
import { usePreload } from "https://deno.land/x/ultra@v2.0.0-alpha.4/lib/client/asset.js";

This hook will insert a <link rel="preload" /> tag into the head of the server render document. During client side transitions, this won't do anything.

Parameters

href
props