-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: "fixed height" a global setting with max threshold #590
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left on wording suggestion, everything works as expected!
Co-authored-by: Adam Boro <aborowski24@gmail.com>
May I know that issue this change will fix? from CLS point of view only Above Header and Below Header is the issue, that can be solved by enabling current feature i.e. Use fixed height for individual ads. Setting Maximum fixed height globally as one size fit for all is not a good approach as different ad location has different better performing ad sizes. |
This change enforces an opinion that all ad slots should have defined fixed height, with a sensible maximum. This mitigates most of the CLS, but the feature can be tweaked to anyone's liking – e.g. if you want 0 CLS (from ads at least), set a very high "maximum fixed height". If you prefer to optimise for as little empty space around ads as possible, set a lower value or disable the feature. Note that because the fixed-height feature will kick in for unfilled ads only for above-the-fold slots, this will in practice apply only to above- and below-header ads in most of the cases. |
Thank you. This makes functionality clearer. Suggest to change descriptions to reflect 2 key things: unfilled ads + above-the-fold-slots only |
🎉 This PR is included in version 1.42.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.42.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Changes how the "fixed height" system, implemented in #439, behaves. It's currently set as a per-placement setting and this PR turns it into a global setting with max height support:
If "max height" is enabled, any creative rendering above the defined threshold will cause a layout shift (CLS).
How to test