© Francesco Strazzullo 2019
F. StrazzulloFrameworkless Front-End Developmenthttps://doi.org/10.1007/978-1-4842-4967-3_6

6. Routing

Francesco Strazzullo1 
(1)
TREVISO, Treviso, Italy
 

In the last chapter, I talked about AJAX and how it changed web development forever. The single-page application (SPA) is another very important technique that drastically changed the way users interact with web applications.

In this chapter, you learn what a SPA is and how to build one of its core features: the client-side routing system.

Single-Page Applications

A single-page application is a web application that runs inside a single HTML page. When the user navigates from one view to another, the application dynamically repaints the view, giving the illusion of standard ...

Get Frameworkless Front-End Development: Do You Control Your Dependencies Or Are They Controlling You? now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.