I really wish the web had a global navigation event I could cancel. So much router logic is just trying to intercept all nav to do pushState.
@DasSurma @bfgeek @slightlylate
-
-
The last one is thorny and IIRC part of why we didn't push forward. E.g., what is logged here?: ``` window.onbeforenavigate = (e) => ( e.preventDefault(); }; console.log(window.location); // "/blarg" window.location = "/whatevs"; console.log(window.location); // ??? ```
- 8 more replies
New conversation -
-
-
Fragment nav: We have onhashchange, but iirc it’s pretty unreliable. Cancellable: I vote yes. App embedding and stuff. Timing: Synchronous after the old APIs, maybe? But I feel like there’s a case to be made for extendable events
-
Extendable and synchronous are incompatible. You've gotta make the decision *now*.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.