Hyvä Theme Support
The Webkul Video Player extension offers native compatibility with Hyvä Themes, replacing heavy legacy Luma JavaScript libraries (RequireJS, Knockout.js, jQuery UI) with modern, lightweight Alpine.js state management and utility-first Tailwind CSS styling.
Overview
Modern eCommerce stores running on Hyvä Themes achieve sub-second load times and flawless Core Web Vitals (CWV). The Webkul Video Player Hyvä integration ensures that your product video players load instantly, stream smoothly, and integrate seamlessly into Hyvä's gallery layouts without introducing layout shifts or JavaScript bloat.
Key Benefits on Hyvä Storefronts
1. Minimal JavaScript Footprint
- Built with Alpine.js, reducing JavaScript bundle overhead from megabytes down to just a few kilobytes.
- Prevents main-thread blocking, keeping the Interaction to Next Paint (INP) metric minimal during video player initialization.
2. Zero Layout Shift (CLS)
- Pre-allocated aspect-ratio containers (
aspect-videooraspect-[16/9]) prevent Cumulative Layout Shift (CLS) while video assets and preview posters buffer.
3. Native Media Gallery Integration
- Embedded directly within Hyvä's Alpine.js product image gallery component.
- Smooth transition states between product still shots and video streams.
- Fully touch-optimized controls on smartphones and tablet devices.
4. Tailwind CSS Aesthetic
- Responsive controls styled with Tailwind CSS utility classes.
- Inherits primary theme typography, border radiuses, and color variables for a unified storefront look and feel.
Hyvä Deployment Checklist
1. Verify Fallback Module
Ensure the Hyva_CompatModuleFallback module is active in your Magento instance:
php bin/magento module:status Hyva_CompatModuleFallback
2. Install Compatibility Package
Require the compatibility module via Composer:
composer require webkul/magento2-videoplayer-hyva
3. Run Magento Upgrade & DI Compilation
php bin/magento setup:upgrade
php bin/magento setup:di:compile
4. Rebuild Hyvä Theme Tailwind CSS
Compile your Hyvä theme's Tailwind stylesheet so classes used in Video Player templates are included:
npm --prefix app/design/frontend/Vendor/hyva-theme/web/tailwind run build
5. Flush Magento Cache
php bin/magento cache:flush
