This project demonstrates the streaming capabilities of SvelteKit, showcasing how different parts of a web page can be loaded progressively.
Clone the repository and set the correct Node.js version (22) or nvm use
to use the correct version.
Install the dependencies:
npm install
Start the development server:
npm run dev
Open your browser and navigate to http://localhost:5173
(or the port shown in your terminal).
To see the streaming in action, you can use cURL to fetch the page content:
curl -N -H "Accept: text/html" http://localhost:5173/streaming
This command will show you how different parts of the page are streamed in over time.