Skip to content

v1.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Dec 01:49
· 15 commits to main since this release

1.4.0 - 2023-12-14

Added

  • Added property version in the client.
  • Added integration with server-side rendered banners.
  • Added ability to provide custom options for each banner. Options can be passed via data attributes data-amp-option-<optionName>="<optionValue>" and can be retrieved in event handlers.
  • Added support for native lazy loading. Feature can be enabled through banner options loading=lazy and loading-offset=<offset> (for multiple positions only).

Changed

  • Property banner.data is now deprecated. To access information about a position use property banner.positionData. For example, replace banner.data.displayType with banner.positionData.displayType.
  • The default templates have been modified and moved to the ./src/template directory.
  • Updated docs.