Changelog
Version 1.2.0
Changed
- Refactored JavaScript integration to comply with Shopware Storefront Plugin standards.
- Moved inline JavaScript from `footer.html.twig` to a separate JavaScript Storefront Plugin (`stpi-prefetch.js`).
- Introduced `window.StPiPrefetchConfig` in Twig to dynamically pass configuration values.
- Registered the new Storefront Plugin in `main.js` and adjusted Webpack configuration.
- Optimized script execution to ensure it runs only in supported browsers (Chrome & Edge).
Version 1.1.0
Added
- New **Immediate eagerness option** for search suggestions, search results, and custom usage.
- Default CSS selectors for search suggestions (`.search-suggest-product-link`) and search results (`.search-page .product-image-link`) to simplify setup.
Updated
- Improved device selection options with default values set to "Desktop" for better control over when prefetching/prerendering applies.
- Enhanced English and German labels for improved configuration clarity in the Shopware backend.
Version 1.0.0
Added
- Initial release of the **StPiPrefetch** plugin for Shopware 6.
- Configurable prefetching and prerendering options for:
- **Search Suggestions**: Allows prefetching/prerendering of search suggestion links with configurable eagerness level.
- **Search Results**: Enables prefetching/prerendering of search result links with customizable eagerness settings.
- **Custom Usage**: Provides options for prefetching/prerendering of user-defined links.
- Device-specific settings for each section (Desktop or All Devices).
- Integrated configuration options in the Shopware admin for easy customization.
- Support for experimental Speculation Rules to optimize loading times.
Updated
- Improved handling of device-specific settings for more flexible targeting.
- Enhanced plugin configuration for easier setup and control in the Shopware admin.
Fixed
- Resolved minor display issues in the Shopware backend configuration.
- Fixed compatibility issues with certain Shopware themes for seamless integration.
Notes
Speculation Rules are experimental and may vary in behavior depending on the browser.
# 1.0.0
### Added
- Initial release of **StPiPrefetch** plugin for Shopware 6.
- Added configurable prefetching and prerendering options for:
- **Search Suggestions**: Allows prefetching/prerendering of search suggestion links with configurable eagerness level (Conservative or Moderate).
- **Search Results**: Enables prefetching/prerendering of search result links with customizable eagerness settings.
- **Custom Usage**: Provides options for prefetching/prerendering of user-defined links.
- Device-specific settings for each section, allowing prefetch/prerender to be enabled only on **Desktop** or **All Devices**.
- Integrated configuration options in the Shopware admin for easy customization.
- Support for experimental Speculation Rules, optimized for faster loading times and improved user experience.
### Updated
- Improved handling of device-specific settings to allow flexible targeting of desktop-only or all-device prefetching and prerendering.
- Enhanced plugin configuration for easier setup and control in the Shopware admin.
### Fixed
- Resolved minor display issues in the Shopware backend configuration.
- Fixed compatibility issues with certain Shopware themes to ensure seamless integration.
### Notes
- Speculation Rules are experimental and may vary in behavior depending on the browser.
# 1.1.0
### Added
- New eagerness option **Immediate** for search suggestions, search results, and custom usage, allowing more responsive loading behavior.
- Default CSS selectors for search suggestions (`.search-suggest-product-link`) and search results (`.search-page .product-image-link`) to simplify setup.
### Updated
- Improved device selection options with default values set to "desktop" for better control over when prefetching/prerendering applies.
- Enhanced English and German labels for improved configuration clarity in the Shopware backend.
# 1.0.0
### Added
- Initial release of **StPiPrefetch** plugin for Shopware 6.
- Added configurable prefetching and prerendering options for:
- **Search Suggestions**: Allows prefetching/prerendering of search suggestion links with configurable eagerness level (Conservative or Moderate).
- **Search Results**: Enables prefetching/prerendering of search result links with customizable eagerness settings.
- **Custom Usage**: Provides options for prefetching/prerendering of user-defined links.
- Device-specific settings for each section, allowing prefetch/prerender to be enabled only on **Desktop** or **All Devices**.
- Integrated configuration options in the Shopware admin for easy customization.
- Support for experimental Speculation Rules, optimized for faster loading times and improved user experience.
### Updated
- Improved handling of device-specific settings to allow flexible targeting of desktop-only or all-device prefetching and prerendering.
- Enhanced plugin configuration for easier setup and control in the Shopware admin.
### Fixed
- Resolved minor display issues in the Shopware backend configuration.
- Fixed compatibility issues with certain Shopware themes to ensure seamless integration.
### Notes
- Speculation Rules are experimental and may vary in behavior depending on the browser.