Experimental features
Info
Enabling these experimental browser APIs is straightforward, but modifying their code requires technical knowledge.
Before asking questions in Slack, please review the linked Resources & Articles for each feature.
Warning
As these features rely on experimental browser APIs, their Hyvä implementations may change or be removed without notice.
Currently, there are no new experimental features. If you have an idea for one, please share it with us for consideration.
Experiments in Hyvä 1.3.x
The features listed below were experimental in Hyvä 1.3.x and are now stable in Hyvä 1.4+.
Speculation Rules
Introduced as an experimental feature in Hyvä 1.3.7, Speculation Rules are now a stable feature enabled by default in Hyvä 1.4+. For usage details, refer to the Speculation Rules page.
The Speculation Rules API proactively loads resources for anticipated user journeys. By prefetching or prerendering potential next pages, it significantly improves perceived load times and user experience.
Resources & Articles
- Caniuse Support: Caniuse Speculation Rules
- Developer Documentation: Chrome Dev - Preload Pages
- Blog Post: Nitropack Blog - Speculation Rules API
View Transitions
View Transitions, introduced as an experimental feature in Hyvä 1.3.10, are now a stable feature enabled by default in Hyvä 1.4+. They are integrated into the default theme (CSS and JS) and require no specific settings.
The View Transitions API v2 enables smooth, same-origin, cross-document view transitions, enhancing the user experience with fluid page animations. For advanced control and improved perceived speed, consider combining it with the Speculation Rules API.
Resources & Articles
- Caniuse Support: Caniuse View Transition
- Developer Documentation: Chrome Dev - View Transitions
- Blog Post: Chrome Blog - View Transitions