Firefox for Web Developers @webdevs.firefox.com · Jan 15

The Navigation API is newly baseline! The web now has sensible, low-level routing for navigations.

161 likes 9 replies

?

Replies

nichoth · Feb 16

This actually looks like a really good API. I like the scroll position and focus state part. RE polyfills -- I've been using this for the last 10 years: github.com/substrate-sy... Not a pollyfill, but it does all the things I need, and smooths the history API.

Dom Christie · Jan 20

So excited by this. Related, but kind of general question: how stable is the API? I've been going through the GitHub issues for how I might implement a "rollback" after an intercept, and it looks like there have been a few of solutions: commit: 'after-transition', event.commit(), & precommitHandler.

Zach · Jan 15

Just echoing what others are saying. These short explainer videos on new features are so helpful. Thank you!

Phendan · Jan 16

This is so much cleaner. I've told students to avoid rolling their own solutions using the history API because it's so messy, but this makes it feel much more in reach

easrng  · Jan 15

Is there a polyfill?

Éverton Paiva · Jan 15

@down.blue please.

Sajid Anwar · Jan 15

This is literally my favorite account on Bluesky and these @jakearchibald.com videos are great! Exciting to see the conclusion to the "big back button quiz" saga.