in src/lib/api/event.recorder.ts [135:152]
export function getAppRoot(
_document: Document,
opts: PrebootOptions,
serverNode: HTMLElement
): ServerClientRoot {
const root: ServerClientRoot = {serverNode};
// if we are doing buffering, we need to create the buffer for the client
// else the client root is the same as the server
root.clientNode = opts.buffer ? createBuffer(root) : root.serverNode;
// create an overlay if not disabled ,that can be used later if a freeze event occurs
if (!opts.disableOverlay) {
root.overlay = createOverlay(_document);
}
return root;
}