MCPcopy
hub / github.com/vercel/next.js / initScriptLoader

Function initScriptLoader

packages/next/src/client/script.tsx:190–193  ·  view source on GitHub ↗
(scriptLoaderItems: ScriptProps[])

Source from the content-addressed store, hash-verified

188}
189
190export function initScriptLoader(scriptLoaderItems: ScriptProps[]) {
191 scriptLoaderItems.forEach(handleClientScriptLoad)
192 addBeforeInteractiveToCache()
193}
194
195/**
196 * Load a third-party scripts in an optimized way.

Callers 1

initializeFunction · 0.85

Calls 2

forEachMethod · 0.45

Tested by

no test coverage detected