Svelte · Senior · Question 61 of 75
Why would you return a promise from a server load instead of awaiting everything?
- ✓Correct answer: To stream slow, non-critical data after the initial HTML, improving time to first content
- 2To run the query in the browser
- 3To skip SSR
Explanation
Top-level awaited data blocks rendering; unawaited promises are serialized and resolved on the client as they arrive.