-
-
Notifications
You must be signed in to change notification settings - Fork 5
Fluid user experience
WebEngine can deliver a more responsive-feeling interface without abandoning the page-based model. The main tool for that is Flux, which is included by default and documented at https://www.php.gt/docs/Flux/Home/.
Flux allows the browser to opt in to richer behaviour through data-flux attributes. In many cases, no custom JavaScript is needed at all.
The usual starting point is a normal HTML form or link. Flux can then enhance that interaction so only the relevant part of the page is updated instead of forcing a full refresh.
The best practical introduction is in the Flux docs:
- https://www.php.gt/docs/Flux/Your-first-Flux-form/
- https://www.php.gt/docs/Flux/Updating-part-of-the-page/
Multi-pass rendering is the idea of separating the first visible response from later enhancement work. The browser gets something useful quickly, then later requests can fill in the slower parts.
That can improve perceived performance because the user sees useful content earlier, even if some work is still happening in the background.
Flux is the main place to continue from here:
Learn how to track speed and benchmarks in your applications.
- File-based routing
- Page views
- Page logic
- Dynamic URIs
- Headers and footers
- Custom HTML components
- Page partials
- Binding data to the DOM
- DOM manipulation
- Hello You tutorial
- Todo list tutorial
- Address book tutorial WIP
- Blueprints
- Application architecture
- Coding styleguide WIP
- PHP environment setup WIP
- Web servers WIP
- Background cron tasks
- Database setup WIP
- Client-side compilation WIP
- Testing WebEngine applications WIP
- Production checklist WIP
- Security WIP