The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

1064 Modules
570 Ready
490 Need Help
🏆 Leaderboard
Stale v1.0.5

PageBuilder Web Vitals for Magento 2

zero1limited/module-pagebuilder-web-vitals

Extends Magento Page Builder with explicit image width/height fields, link labels, and lazy-loading tags to improve Core Web Vitals performance and accessibility scores.

3,464
Downloads
Below average
18
GitHub Stars
Below average
1y ago
Last Release
3
Open Issues
Build Passing Strict Compliant
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

Coding Standard
PHPStan Level 9

Tested on Magento 2.4.9

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.5 on Magento 2.4.9
Jun 1, 2026

Share This Module's Status

PageBuilder Web Vitals for Magento 2 Magento compatibility status badge

README

Loaded from GitHub

Magento 2 - PageBuilder Web Vitals (With Lazyload Tags)

For Magento 2.4.3

Description

Magento's Page Builder is a great core module (as of 2.4.3), which makes it easy to create content-rich pages, but there are a couple of elements that are missing:

  • Image dimensions
  • Link labels
  • loading="lazy" tags

Why are these important?...

Google's Web Vitals audits contain improvement suggestions that help increase both the Performance and Accessibility metrics. The 2 relating to Magento's Page Builder are:

  • Image elements do not have explicit width and height
  • Links do not have a discernible name

Image elements do not have explicit width and height

Once this module is installed, you will have 2 new fields allowing you to add a width and height to each image you upload via Page Builder. Adding these dimensions will ensure that the image you have uploaded will pass the Google Web Vital audit

Links do not have a discernible name

This is recommended by Google when a tags don't contain text. When adding an image with a link, the a tag only contains an image, but one way to ensure this a tag passes the Web Vitals audit is to add an aria-label tag to the link itself. Once this module is installed, you will have a new field allowing you to add a label to the link tag which will ensure the link passes the audit.

Adding image dimensions and link labels will ensure those elements pass the audit, but it can also have a knock on effect that also helps improve your CLS score (Content Layout Shift)

Installation...

composer require zero1/module-pagebuilder-web-vitals

© Zero-1 Ltd | www.zero1.co.uk

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.