• Robert Knight's avatar
    Add NavigationObserver utility to observe client-side navigations · 28a96914
    Robert Knight authored
    This utility monitors for same-document navigations that update the path
    or query string of the URL but don't load a new Document.
    
    This uses the Navigation API if available (Chrome >= 102) or falls back
    to a combination of the "popstate" event and monkey-patching the
    `window.history` API otherwise (all other browsers).
    28a96914
navigation-observer.js 3.05 KB