承接 collab/module-speculation-rules 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

collab/module-speculation-rules

最新稳定版本:1.0.0

Composer 安装命令:

composer require collab/module-speculation-rules

包简介

Magento 2 module which adds support for Speculation Rules API for instant page loads.

README 文档

README

The Collab_SpeculationRules module allows You to lavergae the Speculation Rules API.

Configuration

You can configure the module in the admin panel under Stores > Configuration > Collab Extensions > Speculation Rules.

Tab Config Field Description
General Enabled (bool: Select) Determines if the module is enabled or not.
General Spec Rules (string: Textarea) JSON object defining speculation rules. If module is enabled we are prerendering following links by default:
- main menu links - top and 1st level
- links found in breadcrumbs
- product links found on category pages
- links embeded in Page Builder elements

By default following link paths are excluded from prerender:
- /checkout
- /customer
- /catalogsearch
- /wishlist

By default You can prevent given link to be prerendered by assigning them skip-prerender class name. This field can be customized according to this MDN Documentation

Why choose this extension over other solutions?

We don't believe in efficient modules which have tons of options - simple as that - modules which have multiple options, are prepared for many integrations always have some performance footprint for application. Having this in mind we are trying to provide simple, portable and independent modules which sometimes require some basic Magento 2 development skills.

Browser Support

Module automatically detects if the browser supports Speculation Rules API. If not, the module will not be loaded.

Browser Version
Chrome 109+
Edge 109+
Firefox Not Supported
Safari Not Supported

PageSpeed

In order to check the PageSpeed impact of the module please refer to Official Google Chrome Docs.

Installation details

composer req collab/module-speculation-rules
bin/magento setup:upgrade

统计信息

  • 总下载量: 6.71k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-08