https://github.com/friendsofshopware/froshlazysizes
This plugin allows you to use lazy loading for your images.
https://github.com/friendsofshopware/froshlazysizes
Last synced: 5 months ago
JSON representation
This plugin allows you to use lazy loading for your images.
- Host: GitHub
- URL: https://github.com/friendsofshopware/froshlazysizes
- Owner: FriendsOfShopware
- License: mit
- Created: 2022-12-15T09:53:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-10T10:02:16.000Z (about 1 year ago)
- Last Synced: 2025-09-28T18:06:43.430Z (10 months ago)
- Language: Twig
- Homepage:
- Size: 558 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LazySizes for Shopware 6
[](LICENSE.md) [](https://store.shopware.com/en/search?sSearch=FroshLazySizes)
This plugin has built-in Lazyloading with auto generated sizes for best fitting sizes.

## Install
Download the plugin from the release page and enable it in shopware.
### By composer
`composer require frosh/lazy-sizes`
### From source
Run `npm install` in `src/Resources/app/storefront` within the plugin directory
### By zip
download latest release and upload into admin:
https://github.com/FriendsOfShopware/FroshLazySizes/releases/latest/download/FroshLazySizes.zip
## Adding more thumbnail sizes:
- Save new size in the folder of the media management
- then run the command `bin/console media:generate-thumbnails` on the console to update the thumbnails for all images in the database
- Clear shop cache
## Selectively deactivate plugins lazysizes and lazyloading function
This might be useful to optimize loading images `above the fold` or if you don't like to use the plugin for specific images or tooltip.
### Specific images
Add variable `lazysizes` with value `false` before using `sw_thumbnails` in the template.
### Cms sections
Add css class `no-lazysizes` to your sections
### Cms blocks
Add css class `no-lazysizes` to your block
#### Overwrite `no-lazysizes` of sections class in block
Add class `lazysizes` to your block
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.