Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Releases: Financial-Times/o-ads

GPT SRA and Lazy-load fixes.

16 Feb 09:31
807e27e
Compare
Choose a tag to compare

This beta-release alters the way that GPT functions are called - ensuring that slot definitions and page-level GPT settings are called in the correct order.
These changes allow o-ads to make use of SRA and Google's Lazy-load.

Downgrading webpack as the latest minor version appears to cause build issues.

16 Feb 16:32
a09d402
Compare
Choose a tag to compare
Merge pull request #559 from Financial-Times/v19.0.1

downgrading webpack

Mostly dev-dependency changes - ensuring that Master branch is in-sync with latest release

16 Feb 15:39
08f8410
Compare
Choose a tag to compare

This release mostly contains updates to dev-dependencies. Making a release to ensure that master stays in-sync with the latest published release.

[Beta] config module imported from advertising monorepo

11 Jan 11:33
Compare
Choose a tag to compare
v19.0.0-beta.0

ADSDEV-747 use latest ads-config beta

Release v18.3.3

29 Sep 14:36
Compare
Choose a tag to compare
Release v18.3.3

patch: add extension to relative imports to make the code work directly in a browser

29 Sep 10:53
8dd6f50
Compare
Choose a tag to compare
Merge pull request #460 from Financial-Times/relative-imports-extension

add extension to relative imports to make the code work directly in a browser

minor: ADSDEV-469 Do not run gpt's enableLazyLoad routine when flag not provided

17 Jul 14:08
5a1dcec
Compare
Choose a tag to compare
v18.3.0

Merge pull request #442 from Financial-Times/do_not_run_enable_lazy_l…

Improve accessibility of ad slots

22 Jun 11:03
0ac1070
Compare
Choose a tag to compare

tabindex="-1" and aria-hidden="true" for ad slots

Release v18.1.0:

18 Jun 15:28
83b8e87
Compare
Choose a tag to compare

Exposes GPT Lazy Load functionality.

gpt.enableLazyLoad (optional) <Object> - GPT Lazy Load, where configuration parameters allow customization of lazy loading behaviour.

Default settings are

  • fetchMarginPercent: 500, // minimum distance from the current viewport a slot must be before we fetch the ad as a percentage of viewport size. 0 means "when the slot enters the viewport", 100 means "when the ad is 1 viewport away"
  • renderMarginPercent: 200, // minimum distance from the current viewport a slot must be before we render an ad. This allows for prefetching the ad, but waiting to render and download other subresources. The value works just like fetchMarginPercent as a percentage of viewport.
  • mobileScaling: 2.0 // a multiplier applied to margins on mobile devices. This allows varying margins on mobile vs. desktop. For example, a mobileScaling of 2.0 will multiply all margins by 2 on mobile devices, increasing the minimum distance a slot can be before fetching and rendering.

Release v18.0.0 - Ads Data Refactor

14 May 11:26
Compare
Choose a tag to compare

This release refactors o-ads to remove the ads-api calls and instead take all targeting data passed to it via the options object. It cleans up a few other things: