+page.js load Function
Export a load function to fetch or compute data before the page renders.
Why Load Functions
SvelteKit needs to know what data your page needs so it can fetch before render. The load function provides it.
File Location
Create +page.js next to +page.svelte in the same folder.