Releases: sitegeist/Sitegeist.Kaleidoscope
v6.6.1
Full Changelog: v6.6.0...v6.6.1
v6.6.0
What's Changed
- Fix: Wrong settings path in Readme by @jonnitto in #61
- FEATURE: Add dataSrc method to image source interface by @mficzel in #63
- FEATURE: Omit srcset and sizes if imageSource is non-scalable by @manuelmeister in #62
- TASK: Update linting to more recent practices by @mficzel in #64
New Contributors
- @manuelmeister made their first contribution in #62
Full Changelog: v6.5.2...v6.6.0
v6.5.2
v6.5.1
What's Changed
- Fix DummyImageSource::withVariantPreset() by @bwaidelich in #56
Full Changelog: v6.5.0...v6.5.1
v6.5.0 - Generic `attributes` and allow variant preset usage for custom implementations
What's Changed
- Docs: Update methods in code example by @jonnitto in #50
- FEATURE: Add generic attributes support by @mficzel in #54
- Allow variant preset usage for custom implementations by @bwaidelich in #53
New Contributors
- @bwaidelich made their first contribution in #53
Full Changelog: v6.4.0...v6.5.0
v6.4.0
Enable `lazy` loading by default
With the general availability of loading="lazy" in all relevant Browsers we added lazy loading as a default.
While this is definitely the most user friendly default it is not always the best for the site performance.
In general all images that are immediately visible to the user should be loaded via loading="eager"
and everything else via loading="lazy"
.
For Kaleidoscope images or pictures in the site header you can set loading="eager" manually.
For the main content collection we suggest to enable eager
loading for the first content in main
and lazy
load the rest.
renderer = Neos.Neos:ContentCollection {
nodePath = 'main'
// configure separate iterator for main content
content.iterationName = 'mainContentIterator'
// enable lazyness for first items
prototype(Sitegeist.Kaleidoscope:Image) {
loading = ${mainContentIterator.isFirst ? 'eager' : 'lazy'}
}
prototype(Sitegeist.Kaleidoscope:Picture) {
loading = ${mainContentIterator.isFirst ? 'eager' : 'lazy'}
}
}
Add Support for Neos 8.0
v6.2.1 TASK: Relax composer dependencies for Neos 8.0
Configure alternate driver and format for dummyImages
Some imagine drivers like vips do not support the creation of images on the fly which breaks the dummy images.
This change allows to configure an alternate driver that is used for the dummyImages plus a fallbackFormat that is used when the chosen
format could not be rendered.
Thanks to @gradinarufelix for providing the PR and to @rolandschuetz and @kdambekalns for testing:
Sitegeist:
Kaleidoscope:
dummyImage:
overrideImagineDriver: 'Imagick'
fallbackFormat: 'png'
BUGFIX: Remove src attributes from source tag that is technically allowed but ignored inside of picture elements
This is a backport from a bugfix that was merged to 6.1 instead of 6.0. Thank to @kdambekalns for detecting this.