Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
MASTERING KNOCKOUTJS

You're reading from   MASTERING KNOCKOUTJS Use and extend Knockout to deliver feature-rich, modern web applications

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783981007
Length 270 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Timothy Moran Timothy Moran
Author Profile Icon Timothy Moran
Timothy Moran
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Knockout Essentials 2. Extending Knockout with Custom Binding Handlers FREE CHAPTER 3. Extending Knockout with Preprocessors and Providers 4. Application Development with Components and Modules 5. Durandal – the Knockout Framework 6. Advanced Durandal 7. Best Practices 8. Plugins and Other Knockout Libraries 9. Under the Hood Index

Single Page Application (SPA) routing

A big part of the appeal of Knockout (or any MV* framework) is that its template engine allows us to rerender parts of the page without the need to talk to the server. Being able to make incremental page updates on the client side means less latency, giving the application a much snappier feel. SPAs take this concept to the next level by letting the JavaScript client control navigation between pages. When the browser navigates, it has to rerender the whole page, which means reloading the JavaScript, HTML, CSS, and everything. When JavaScript navigates, it just has to change part of the HTML, which ends up being much faster in most cases.

Knockout can provide this virtual page-changing functionality relatively easily, but an important component of SPAs is that page changes still update the URL. This helps the user check whether a change has occurred, but more importantly, it means that if the user refreshes the page or shares the link, the application...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime