Page loading progress bar in action with SvelteKit.
Click a link below to go to some other page. SvelteKit has a load
function which runs in the server to load data through API calls. To mimick a real-world use of the load
function, we'll run an empty setTimeout
in a Promise
to wait for 2 seconds.