WICG / navigation-api

The new navigation API provides a new interface for navigations and session history, with a focus on single-page application navigations.
https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigation-api
487 stars 26 forks source link

Awesome! #233

Closed jimmywarting closed 2 years ago

jimmywarting commented 2 years ago

I like this new navigation api. specially the part about adding a event listener and using abort signal. Now we just need to be able to use import(url, { signal}) too

just wondering if anyone have built any polyfill for this already?

domenic commented 2 years ago

Glad to hear you like it!

The polyfill I'm aware of is https://github.com/virtualstate/navigation , although I haven't tried it myself.

jimmywarting commented 2 years ago

Ty, will try it out tomorrow

jimmywarting commented 2 years ago

tried it out... it was quite large in size. and it didn't work... it was broken.

I will stick to history api in the meantime until all browser adds support for this new api