MCPcopy Create free account
hub / github.com/observablehq/framework / renderModulePreload

Function renderModulePreload

src/render.ts:254–256  ·  view source on GitHub ↗
(href: string)

Source from the content-addressed store, hash-verified

252}
253
254function renderModulePreload(href: string): Html | null {
255 return isJavaScript(href) ? html`\n<link rel="modulepreload" href="${href}">` : null;
256}
257
258function renderHeader(header: MarkdownPage["header"], resolvers: HtmlResolvers): Html | null {
259 return header

Callers

nothing calls this directly

Calls 2

htmlFunction · 0.90
isJavaScriptFunction · 0.70

Tested by

no test coverage detected