Svelte · Junior · Question 53 of 76

What is the difference between +page.js and +page.server.js?

Explanation

A universal load in +page.js runs during SSR and then in the browser on client-side navigation.

Further reading

Problem with a question

Svelte · Junior · question 53

Test yourself

Take the Svelte · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz