Skip to content

Conversation

@rhoerr
Copy link
Contributor

@rhoerr rhoerr commented Oct 2, 2025

I propose adding mage-os/module-theme-optimization as a bundled module. https://github.com/mage-os-lab/module-theme-optimization

  • It improves Magento theme performance by enabling safe modern browser optimization features:
    • speculative loading
    • view transitions
    • bfcache
  • It is lightweight and designed to seamlessly integrate without disrupting existing themes.
  • It is actively maintained with a focus on enhancing user experience through faster page loads.

Implications

  • Page loads and transitions will be optimized, potentially reducing load times and improving site speed.
  • Theme customization workflows remain unaffected.
  • All features covered by feature flags, enabled by default.
  • Some other solutions (Hyva) already implement some of the features, but Magento itself does not. Having both enabled at once would not have side effects except unnecessary code duplication. Power users can disable one or the other via settings to avoid that.

Risks

  • bfcache feature won't work with non-native FPC solutions; others (Varnish, Fastly, ...) require their own support

Benefits

  • Faster perceived frontend performance leading to better customer engagement and SEO.
  • Reduced page load times improving overall user satisfaction.
  • Simple integration with minimal configuration needed.

PR

This PR results in the module being added as a pinned require of mage-os/product-community-edition like:

"mage-os/module-theme-optimization": "1.0.0",

which composer will then require via Packagist, like any other third party package. The latest published version will be pinned at the time of each release.

@rhoerr
Copy link
Contributor Author

rhoerr commented Oct 2, 2025

Created as a draft PR for now as there is still some discussion ongoing around particulars of the bfcache support. But it's functionally complete as-is.

@rhoerr rhoerr added this to the Mage-OS 2.0 milestone Oct 2, 2025
@rhoerr rhoerr changed the base branch from main to release/mage-os-2.0 October 2, 2025 12:21
@rhoerr rhoerr added the enhancement New feature or request label Oct 2, 2025
@rhoerr rhoerr marked this pull request as ready for review October 9, 2025 16:14
@rhoerr rhoerr requested a review from a team as a code owner October 9, 2025 16:14
@rhoerr rhoerr merged commit a6dfe75 into mage-os:release/mage-os-2.0 Oct 9, 2025
1 check passed
@rhoerr
Copy link
Contributor Author

rhoerr commented Oct 9, 2025

  • Code was reviewed, patched, and released.
  • I haven't heard any voices of concern.
  • This is a big performance and UX improvement all Magento sites can benefit from.

Merging.

@rhoerr rhoerr deleted the bundle/mage-os-module-theme-optimization branch October 9, 2025 18:35
rhoerr added a commit that referenced this pull request Oct 16, 2025
* Bundle aligent/magento2-pci-4-compatibility (#239)

* Bundle mage-os/module-meta-robots-tag (#244)

* Bundle mage-os/meta-robots-tag

* Fixed composer package name based on latest changes

* Bundle mage-os/module-inventory-reservations-grid (#241)

* Bundle mage-os/module-pagebuilder-template-import-export (#230)

* Update dependencies-template.json with pagebuilder enhancements

* Add mage-os pagebuilder import/export and cms widget component modules to dependencies-template.json

* Update dependencies-template.json

* Fix wrong dependency git repos using https

* Changed PR to just mage-os/module-pagebuilder-template-import-export

---------

Co-authored-by: Ryan Hoerr <[email protected]>

* Bundle mage-os/module-page-builder-widget (#243)

* Fix magento2-base build error for new releases (#247)

* Bundle mage-os/module-theme-optimization (#242)

* Bundle mage-os/module-automatic-translation (#231)

* Add SEO meta robots module "mage-os/meta-robots-tag"

* Add automatica translation with AI module

* Changed PR to just mage-os/module-automatic-translation

---------

Co-authored-by: Ryan Hoerr <[email protected]>

* Changed mage-os-lab references to mage-os

* Fix magento2-base composer map of tiny_mce_6 to hugerte (#258)

---------

Co-authored-by: dadolun95 <[email protected]>
Co-authored-by: SamueleMartini <[email protected]>
Co-authored-by: Mage-OS <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants