Comment

Comment by devinmcafee

That's correct. When navigating around in a single page app, clicking on an in-app link won't trigger the browser to make a new HTTP GET to fetch an HTML response from the server. Instead, the routing system will use the pushState API to push a new entry into the history and update the DOM to match the new route. By using pushState, your client side JavaScript can replicate native browser behavior and preserve function of the back button to get to previous routes in the application.
parent devinmcafee 5 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton