Load Screen
an interstitial page appearing before a long requestAn interstitial loading screen component that provides user feedback during long-running operations. This component helps manage user expectations by displaying a loading interface before redirecting to time-consuming processes. It works completely without JavaScript, making it a great choice for expensive server-side rendering.
Key Features
- No JavaScript Required: Full functionality using pure CSS and HTML
- User Feedback: Immediate visual confirmation that the request is being processed
- Expectation Management: Clear messaging about potential wait times
- Automatic Redirect: Seamless transition to the actual operation
- Customizable Messaging: Flexible title and description text
How It Works
The load screen uses a two-step process:
- Initial Request: User submits a request for a long-running operation
- Load Screen Display: If the request hasn’t been processed yet (no
hasloadedparameter), show the load screen - Automatic Redirect: The load screen automatically redirects to the same URL with
hasloaded=true - Process Execution: The second request processes the actual operation
- Final Redirect: User is redirected to the completion page
This pattern prevents users from seeing blank pages or timeouts during long operations.
Basic Usage
Simple Load Screen
1 | |