MCPcopy
hub / github.com/sveltejs/svelte / head

Method head

packages/svelte/src/internal/server/renderer.js:110–116  ·  view source on GitHub ↗

* @param {(renderer: Renderer) => void} fn

(fn)

Source from the content-addressed store, hash-verified

108 * @param {(renderer: Renderer) => void} fn
109 */
110 head(fn) {
111 const head = new Renderer(this.global, this);
112 head.type = 'head';
113
114 this.#out.push(head);
115 head.child(fn);
116 }
117
118 /**
119 * @param {Array<Promise<void>>} blockers

Callers 4

headFunction · 0.80
print_errorFunction · 0.80
closeMethod · 0.80
componentFunction · 0.80

Calls 2

childMethod · 0.95
pushMethod · 0.80

Tested by 1

componentFunction · 0.64