Incremental data fetching using Server-Sent Events (SSE) for progressive UI loading.
Incremental data fetching is a technique that allows to fetch data incrementally, rather than fetching all the data at once. This is useful for improving the user experience, especially for large datasets.
Progressive.UI.mov
- Faster Initial Load: Content appears immediately without waiting for complete data
- Improved Perceived Performance: Users see content progressively appearing, making the app feel more responsive
- Better User Experience: Allow users to interact with partial content while the rest loads
- Better Network Usage: Prioritizes essential content delivery first
src/- Server-side Express.js codeclient/- Client-side application
- NodeJS
- pnpm
# Install dependencies for server
pnpm install
# Install dependencies for client
cd client
pnpm install# Run server (in project root)
pnpm dev
# Run client (in client directory)
cd client
pnpm devThe server runs on port 3000, and the client development server will be available at the URL shown in the terminal after startup.