Svelte · Senior · Question 50 of 75
What is the main performance advice for data loading in SvelteKit?
- ✓Correct answer: Avoid waterfalls: start independent requests in parallel, load on the server near the data, stream slow parts, and preload on hover
- 2Load everything in
onMount - 3Put all data in the root layout
Explanation
SvelteKit runs layout and page load functions in parallel unless you await parent() too early.