MCPcopy Index your code
hub / github.com/github/docs / sendExit

Function sendExit

components/lib/events.ts:219–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217}
218
219function sendExit() {
220 if (sentExit) return
221 sentExit = true
222 const { render, firstContentfulPaint, domInteractive, domComplete } = getPerformance()
223
224 return sendEvent({
225 type: EventType.exit,
226 exit_render_duration: render,
227 exit_first_paint: firstContentfulPaint,
228 exit_dom_interactive: domInteractive,
229 exit_dom_complete: domComplete,
230 exit_visit_duration: (Date.now() - startVisitTime) / 1000,
231 exit_scroll_length: maxScrollY,
232 exit_scroll_flip: scrollFlipCount,
233 })
234}
235
236function initPageAndExitEvent() {
237 sendPage() // Initial page hit

Callers 1

initPageAndExitEventFunction · 0.85

Calls 2

getPerformanceFunction · 0.85
sendEventFunction · 0.85

Tested by

no test coverage detected