zero1/module-pagebuilder-web-vitals
Composer 安装命令:
composer require zero1/module-pagebuilder-web-vitals
包简介
Provides functionality to include image dimensions, link labels and lazyload options to image to help improve Google's Web Vitals audits scores
README 文档
README
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
zero1/module-pagebuilder-web-vitals 适用场景与选型建议
zero1/module-pagebuilder-web-vitals 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 24.44k 次下载、GitHub Stars 达 18, 最近一次更新时间为 2023 年 01 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 zero1/module-pagebuilder-web-vitals 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 zero1/module-pagebuilder-web-vitals 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 24.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2023-01-30