Question · Svelte and SvelteKit course · Module 12: Data Loading and SSR

+page.js vs +page.server.js

How does +page.js differ from +page.server.js?

Answer options

  • +page.js runs faster
  • +page.server.js only runs on the server, +page.js runs on both the server and the client
  • There is no difference
  • +page.js is deprecated

You can check the correct answer by solving this task in the CodeWorlds game.