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:

  • File structure --While it is not technically necessary to understand the purpose of every directory and file in a Sapper project, being exposed to this information will give you a better understanding of what Sapper provides and how the pieces fit together. By the time you’ve finished this chapter, you will feel comfortable navigating a ...

Get Svelte and Sapper in Action 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.