Releases: sitegeist/Sitegeist.Lazybones
v3.1.2
Farewell release but still allowing Neos 8.x
v3.1.1 DOCS: Add deprecation notice
Generic alt and title support and Setting for default lazyness
- FEATURE: Support alt and title from image source as it was introduced in Kaleidoscope 6.1.0
see: https://github.com/sitegeist/Sitegeist.Kaleidoscope/releases/tag/v6.1.0
- FEATURE: Add setting to control default lazyness behavior #11
The setting allows to control the default lazyness and is usually enabled
Sitegeist:
Lazybones:
default:
lazyEnabled: true
For FLOW_CONTEXT=Development/VisualRegressionTesting the setting is
disabled as lazy loading does slow down regression tests and tends to make them
less deterministic.
BUGFIX: Lazy pictures should not render the source src in full quality #8
Thanks to @rolandschuetz for discovering this issue and providing the solution.
Empty alt-attributes by default
Merge branch '2.x' # Conflicts: # Resources/Private/Fusion/Prototypes/Picture.fusion
Empty alt-attributes by default
Merge pull request #6 from sitegeist/bugfix/emptyAltTagByDefault BUGFIX: Render empty alt tags by default as is required by web standards
Support for `renderDimensionAttributes`, `width`, `height`, and `format` resp. `formats`
Lazybones will now render width, height and src attribures whenever dimension are defined and thus help to prevent content reflow after image loading. The src contains an svg data-uri with the image dimensions. This can be controlled via renderDimensionAttributes.
Sitegeist.Lazybones:Picture:
renderDimensionAttributes: render dimension attributes (width/height) for the img-tag when the data is available from the imageSource
if not specified dimensions will be enabled automatically for pictures that only use theformatsoptions.width: (optional) the base width, will be applied to theimageSourceheight: (optional) the base height, will be applied to theimageSourceformats: image formats that will be rendered as sources of separate type (string or array)
Sitegeist.Lazybones:Image:
renderDimensionAttributes: render dimension attributes (width/height) when the data is available from the imageSource. Enabled by default.width: (optional) the base width, will be applied to theimageSourceheight: (optional) the base height, will be applied to theimageSourceformat: the image-format for the source likewebporpng, is applied toimageSourceandtype
When renderDimensionAttributes is enabled and the data is available the img-tag will also render an empty inline svg-src with the required dimensions as placeholder to prevent layouts shifting after loading.
Sitegeist.Lazybones:Source:
format: the image-format for the source likewebporpng, is applied toimageSourceandtypewidth: (optional) the base width, will be applied to theimageSourceheight: (optional) the base height, will be applied to theimageSource
In addition all Sitegeist.Lazybones:Source elements rendered inside of a Sitegeist.Lazybones:Picture will inherit the values imageSource, srcset and sizes. Also Source no longer renders data-sizes attributes which are ignored by lazysizes instead sizes are rendered directly.
Support passing afx `content` to Picture tags
v2.1.0 FEATURE: Support `content` in Sitegeist.Lazybones:Picture
Support Neos 5 by supporting kaleidoscope 5.0
v2.0.1 TASK: Relax version constraint to support Kaleidoscope 5 on Neos 5
FEATURE: Centralize lazyness controll to fusion prototypes and add Sitegeist.Lazybones:Source
Three newFusion prototypes now allow central control of lazyness
Sitegeist.Lazybones:Lazy.EnableddefaultvalueistrueSitegeist.Lazybones:Lazy.ClassnamedefaultvalueislazyloadSitegeist.Lazybones:Lazy.Widthdefaultvalueisnull
The prototype Sitegeist.Lazybones:Source can render a source with srcset sizes type and media and is internally used in Sitegeist.Lazybones:Picture
The Neos version requirement is raised to version 4.3 as versions before cannot support format. Also Neos 5 is now allowed.