16 Sapper applications

 

This chapter covers

  • The file structure of Sapper projects
  • Page routes
  • Page layouts
  • Handling errors
  • Running on both server and client
  • The Fetch API wrapper
  • Preloading data needed by pages
  • Prefetching for faster page loads
  • Code splitting

The previous chapter provided a taste of using Sapper. Now it’s time to dig deeper into a series of topics covering its most commonly used features:

16.1 Sapper file structure

16.2 Page routes

16.3 Page layouts

16.4 Handling errors

16.5 Running on both server and client

16.6 Fetch API wrapper

16.7 Preloading

16.8 Prefetching

16.9 Code splitting

16.10 Building the Travel Packing app

Summary