MCPcopy Create free account
hub / github.com/emwalker/digraph / getDeferScript

Function getDeferScript

client/src/server/renderFullPage.ts:7–9  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

5import { FetcherBase } from '../FetcherBase'
6
7const getDeferScript = (src: string) => (src
8 ? `<script defer src="${src}"></script>`
9 : '')
10
11const getStylesheet = (href: string) => (href
12 ? `<link rel="stylesheet" type="text/css" href="${href}">`

Callers 1

templateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected