TLDR Web Dev · ARTICLES & TUTORIALS
MODERN CLIENT-SIDE ROUTING: THE NAVIGATION API
Summary from the TLDR Web Dev newsletter
SPAs (Single Page Applications) are defined by a core feature: they dynamically rewrite their content as users interact with them instead of the default method of loading entirely new pages from the server. SPAs are able to provide this feature via the History API, a clunky API developed long before SPAs were the norm. The Navigation API is a newly proposed API that completely overhauls this space that promises to be easier to adapt. This page describes the Navigation API at a high level with code examples on popular usages.