-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update lazy load audit docs for clarity. Closes #287.
PiperOrigin-RevId: 450796886
- Loading branch information
1 parent
2139f86
commit 2a96f55
Showing
1 changed file
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
# Avoid loading ads until they are nearly on-screen | ||
# Lazily load ads below the fold | ||
|
||
## Overview | ||
|
||
This audit ensures that no more than three ads are loaded outside the viewport. | ||
Ads outside of the viewport are less likely to be seen by users, so loading an | ||
excessive number of them can lower viewability rates and decrease page | ||
performance. | ||
Key Term: "below the fold" refers to the area of the page outside of the initial | ||
viewport. | ||
|
||
This audit checks that no more than three ads are initially loaded below the | ||
fold. The area below the fold only becomes visible after a user scrolls down. | ||
Ads in this area are less likely to be seen by users, so loading an excessive | ||
number of them can lower | ||
[viewability rates](https://support.google.com/admanager/answer/4524488) and | ||
decrease page performance. | ||
|
||
## Recommendations | ||
|
||
Defer loading ads outside of the viewport until they are nearly on-screen. See | ||
the | ||
[Google Publisher Tag Lazy Loading API](https://developers.google.com/publisher-tag/reference#googletag.PubAdsService_enableLazyLoad) | ||
for an example. | ||
Lazily load ads that are positioned below the fold. Lazy loading is a technique | ||
that prevents ads outside of the viewport from being requested and rendered | ||
until they are close to being scrolled into view. See the | ||
[GPT lazy loading sample](https://developers.google.com/publisher-tag/samples/lazy-loading) | ||
for an example implementation. | ||
|
||
## More information | ||
|
||
[GPT Reference](https://developers.google.com/publisher-tag/reference) | ||
[GPT lazy loading API](https://developers.google.com/publisher-tag/reference#googletag.PubAdsService_enableLazyLoad) | ||
[Viewability best practices](https://support.google.com/admanager/answer/6199883) |