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

Function DOMContentLoaded

packages/next/src/client/app-index.tsx:157–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156// When `DOMContentLoaded`, we can close all pending writers to finish hydration.
157const DOMContentLoaded = function () {
158 if (initialServerDataWriter && !initialServerDataFlushed) {
159 initialServerDataWriter.close()
160 initialServerDataFlushed = true
161 initialServerDataBuffer = undefined
162 }
163 initialServerDataLoaded = true
164}
165
166// It's possible that the DOM is already loaded.
167if (document.readyState === 'loading') {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected