spx.on

The spx.on method in SPX serves as an event listener of the navigation Lifecycle. Use this method to monitor and manipulate how SPX behaves at key junctures such as connection, fetching, caching, rendering and loaded stages.

Order of Execution

  1. "connect"
  2. "visit"
  3. "prefetch"
  4. "fetch"
  5. "cache"
  6. "render"
  7. "load"

Context