Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 8732cac

Browse files
authored
Merge pull request #7928 from GrimLink/bugfix/wrong-size-attributes-in-image_with_border
DEL: doc section related to enable_lazy_loading_for_images_without_borders
2 parents 822190a + e853a3c commit 8732cac

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/guides/v2.4/frontend-dev-guide/themes/theme-images.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,3 @@ public function getBreakpoints()
183183

184184
{:.bs-callout-info}
185185
Variables may be used within the scope of modules than the defined one.
186-
187-
### Image lazy loading {#lazy_loading}
188-
189-
When saving products, images are resized based on different properties including the `frame` variable `product_image_white_borders` in `view.xml`.
190-
By default, all images have frames. Magento calculates the required frame size and then it allocates the image to it.
191-
If the image is small, the white frame will be bigger.
192-
193-
The variable `product_image_white_borders` can be overwritten in a custom theme. If it is not defined in a custom theme, it can also be set in `app/code/Magento/Catalog/etc/view.xml`.
194-
Variables defined in the theme `view.xml` have a higher priority. If the same variable is in a module's and also in the theme's `view.xml`, the module variable will be overwritten by the theme variable.
195-
196-
If the `frame` property is enabled in the configuration file, native lazy-loading is enabled on the category product page, checkout shopping cart, and customer wish list.
197-
If the `frame` property is disabled, image lazy-loading is also disabled, unless the variable `enable_lazy_loading_for_images_without_borders` is enabled in `view.xml`.
198-
This is done to prevent small images from being stretched and distorted.
199-
200-
If you have images within frames, and you are sure your images are correctly sized, you can enable lazy-loading by setting `enable_lazy_loading_for_images_without_borders` to `1` in `view.xml`.

0 commit comments

Comments
 (0)