Download the PHP package samjuk/m2-module-fetch-priority without Composer
On this page you can find all versions of the php package samjuk/m2-module-fetch-priority. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download samjuk/m2-module-fetch-priority
More information about samjuk/m2-module-fetch-priority
Files in samjuk/m2-module-fetch-priority
Download samjuk/m2-module-fetch-priority
More information about samjuk/m2-module-fetch-priority
Files in samjuk/m2-module-fetch-priority
Vendor samjuk
Package m2-module-fetch-priority
Short Description Adds ability to set fetch priority attributes, preload/prefetch links for admin content. As well as a public API for extension from 3rd party modules
License MIT
Homepage https://github.com/SamJUK/m2-module-fetch-priority
Package m2-module-fetch-priority
Short Description Adds ability to set fetch priority attributes, preload/prefetch links for admin content. As well as a public API for extension from 3rd party modules
License MIT
Homepage https://github.com/SamJUK/m2-module-fetch-priority
Please rate this library. Is it a good library?
Informations about the package m2-module-fetch-priority
SamJUK_FetchPriority
This module adds options to set the fetch priority & lazy loading attribute on images added via the admin area.
It also provides a simple API to add preload & prefetch link tags to the header from other modules.
Features
- Automatic
<link rel="preload">for the product page main image, so the browser fetches it before it discovers the<img>tag. - Automatic preload for the first 4 product images in a category grid (above-the-fold products).
fetch-priority/loading/ preload controls for PageBuilder image content type (desktop & mobile images).- Public API (
LinkStore+Preload/Prefetchfactories) to add your own preload/prefetch links from any module. - Every feature above can be toggled independently, or disabled globally, via admin config.
Requirements
- Magento 2.4.6 - 2.4.8 (see CI matrix badge above)
- PHP 8.1+
Installation
Configuration
Settings are available at Stores > Configuration > SamJUK > Fetch Priority.
| Path | Field | Default | Description |
|---|---|---|---|
samjuk_fetch_priority/general/enabled |
Enable | Yes | Master switch, disables all preloads when off |
samjuk_fetch_priority/preloads/product_main |
Product Main Image | Yes | Preload the main image on product view pages |
samjuk_fetch_priority/preloads/category_grid |
First 4 Category Products | Yes | Preload the first 4 product images on category pages |
samjuk_fetch_priority/preloads/pagebuilder_content |
PageBuilder Content | Yes | Enable fetch-priority/loading/preload attributes on PageBuilder images |
Scope: default / website / store view.
Link Tag Usage
To use this module to add preload/prefetch link tags
Example Preload Usage
Example Prefetch Usage
Contributing
Bug reports and PRs welcome — see CONTRIBUTING.md.
Security
See SECURITY.md for reporting vulnerabilities.
License
MIT
All versions of m2-module-fetch-priority with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
The package samjuk/m2-module-fetch-priority contains the following files
Loading the files please wait ...