Skip to content

Releases: sitegeist/Sitegeist.Lazybones

v3.1.2

07 Sep 09:05
9585800

Choose a tag to compare

What's Changed

  • BUGFIX: Apply width and height for Sitegeist.Lazybones:Picture with formats by @mficzel in #12

Full Changelog: v3.1.1...v3.1.2

Farewell release but still allowing Neos 8.x

01 Apr 08:59
a348e39

Choose a tag to compare

v3.1.1

DOCS: Add deprecation notice

Generic alt and title support and Setting for default lazyness

04 Jun 11:25
80166e7

Choose a tag to compare

  1. 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

  1. 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

27 May 07:00
d96da84

Choose a tag to compare

Thanks to @rolandschuetz for discovering this issue and providing the solution.

Empty alt-attributes by default

16 Dec 17:47

Choose a tag to compare

Merge branch '2.x'

# Conflicts:
#	Resources/Private/Fusion/Prototypes/Picture.fusion

Empty alt-attributes by default

16 Dec 17:50
7e87794

Choose a tag to compare

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`

26 Oct 10:28
0754c3c

Choose a tag to compare

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 the formats options.
  • width: (optional) the base width, will be applied to the imageSource
  • height: (optional) the base height, will be applied to the imageSource
  • formats: 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 the imageSource
  • height: (optional) the base height, will be applied to the imageSource
  • format: the image-format for the source like webp or png, is applied to imageSource and type

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 like webp or png, is applied to imageSource and type
  • width: (optional) the base width, will be applied to the imageSource
  • height: (optional) the base height, will be applied to the imageSource

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

29 Oct 15:32

Choose a tag to compare

v2.1.0

FEATURE: Support `content` in Sitegeist.Lazybones:Picture

Support Neos 5 by supporting kaleidoscope 5.0

23 Sep 09:44
bc95037

Choose a tag to compare

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

12 Sep 11:55
dffc2e1

Choose a tag to compare

Three newFusion prototypes now allow central control of lazyness

  • Sitegeist.Lazybones:Lazy.Enabled default value is true
  • Sitegeist.Lazybones:Lazy.Classname default value is lazyload
  • Sitegeist.Lazybones:Lazy.Width default value is null

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.