Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

https://github.com/magesuite/performance-product

A module that collects performance improvements for products.

Installation

This module is required by performance MageSuite metapackage, which is required by core metapackage.

Installation if metapackage is not used:

composer require "creativestyle/magesuite-performance-product" ^1.0.0

Admin settings

Asynchronous price loading for simples of configurable product can be switched off and on in the admin panel.

Stores -> Configuration -> MageSuite -> Performance Improvements

Settings:

Option

Value

Comment

Async Option Prices

Yes/No

Default value: Yes

When enabled, prices for simple products on product tiles will be loaded on demand via JavaScript to reduce rendering time for POP and product tiles.

Backend

Add BE documentation

Frontend

Scripts

swatch-async-prices.js mixin is added in order to load price information asynchronously.

'Magento_Swatches/js/swatch-renderer': {
    'MageSuite_PerformanceProduct/js/swatch-async-prices': true,
},
'MageSuite_ServerSideSwatches/js/swatch-renderer': {
    'MageSuite_PerformanceProduct/js/swatch-async-prices': true,
},

After a swatch is clicked there is a request to /performance/swatches/prices/product_id/339/[ID] endpoint and options.jsonConfig od swatch-renderer widget is extended with prices data.

  • No labels