Chapter 5. Using PJAX to Improve the Touch Experience

So far, this book has focused on page loads, and with good reason—page loads are the slowest part of the web experience. On touch devices with high-latency connections even the most optimized page loads can still be painfully slow.

It might not be so bad if page loads happened only once, but most websites have more than one page. Navigating between pages is one of the biggest pain points for users, but page load times can be improved only so much. This chapter describes how you can avoid page loads altogether to dramatically speed up the user experience.

The price of page loads

To start with let’s take the example from the previous chapter, with the randomized image, and make the initial page ...

Get Building Touch Interfaces with HTML5: Develop and Design Speed up your site and create amazing user experiences 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.