O'Reilly logo

Learning ClojureScript by Allen Rohner, Rafik Naccache, W. David Jarvis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Building Richer Web Applications

In the last chapter, we saw what Single Page Applications (SPAs) are and took a deep dive into learning little details about them. SPAs are, as the name suggests, developed to contain a single page. This page is then refreshed and new content is loaded dynamically, based on the users clicks, using AJAX and HTML5.

In this chapter, we'll cover a few advanced techniques for SPAs. We'll cover the following:

  • Real-time communication with websockets
  • Improving load times with CLJS modules
  • Server-side rendering

Real-time communication with websockets

WebSockets are a modern browser feature that make it easier and more efficient to work with real-time streaming data, without the hackiness of long-polling HTTP connections. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required