Actually the answers to the questions posed in the previous section were answered partly in Chapter 4, Asynchronous Programming and Responsive UI. We explored when and how asynchronous programming practices should be leveraged to deliver high performance and responsive user interfaces. Let's explore a few more strategies that can be adopted to ensure a superfast user experience.
We will explore two scenarios and, in the process, understand what we need to keep in mind while developing applications. These concepts can be used elsewhere in any other scenarios.
Sticking to the social media example, consider fetching an entire social feed for a logged in user. We ensure that the critical path targets are met by delivering only a simple HTML page devoid of any scripts. Now, as the user begins to navigate in the feed, and for example, hits the Feed tab on the UI, we expect to load the entire social feed for the day for the user. This feed consists of posts by...