Comments (8)
Could you share the URL of the page(s) you were testing and clarify how you were running the tool, so the team can take a closer look?
from publisher-ads-lighthouse-plugin.
To run the tool, I'm just entering the page URL directly from: https://developers.google.com/publisher-ads-audits/
The page is at: https://www.ifate.com/runes.html
Btw -- the inclusion of Auto Ads' adsbygoogle.js on the page seems to be causing an additional issue as well:
- Original Issue: show_ads_impl_fy2019.js is being flagged as a long task which blocks ad-related networks requests. As noted previously, this script is part of adsbygoogle.js and is necessary to show ads.
- Additional Issue: There is an additional "Ad Request Waterfall" warning to render ads using lazy loading -- but the flagged 'slots outside the viewport' are: "aswift_1", "aswift_2", ... "aswift_6". These are dynamically generated placements created by Auto Ads. AFAIK there is no way to implement lazy loading for these, as advised.
This is concerning because it looks like Auto Ads may negatively impact viewability (?)
from publisher-ads-lighthouse-plugin.
Hi - starting work on this now. I am able to reproduce both the original issue and the additional issue using the URL you provided. I'll post updates as they're available...
from publisher-ads-lighthouse-plugin.
Also, @Bangkokian: possibly unrelated to the current bug, but when I load https://www.ifate.com/runes.html I see <script async='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>
repeated 6 times. Also you're loading adsbygoogle twice. So I think the reason for "Ad request waterfall" is that perhaps a later request for adsbygoogle is coming after an ad request that resulted from one of the earlier instances of those scripts.
from publisher-ads-lighthouse-plugin.
from publisher-ads-lighthouse-plugin.
Partially fixed with #193
from publisher-ads-lighthouse-plugin.
Great - thanks for removing the extra gpt.js inclusions. I do still see adsbygoogle.js included twice, though.
Breaking the issues down:
- “Avoid long tasks that block ad-related network requests” - this is a bug. Thanks for finding it! It is fixed in #193.
- “Ad request waterfall” - it is the case that adsbygoogle.js is being loaded after an ad request that comes from gpt.js. So I feel that the tool is working as intended. Just checking, is it intentional that you have both GPT and AdSense running on the same page? If so, that’s fine - I just want to verify this is intentional. If you indeed need both of them, it may help to move the inclusion of adsbygoogle.js to above all the googletag.cmd.push calls.
- “Avoid loading ads until they are nearly on-screen” - If using only GPT, enabling lazy loading as described in the audit should take care of things. I have created #194 to disable this audit for Adsense-only sites.
from publisher-ads-lighthouse-plugin.
from publisher-ads-lighthouse-plugin.
Related Issues (20)
- Link checker report
- Link checker report
- Link checker report
- Link checker report
- Link checker report
- How do we use it programmatically? HOT 1
- Link checker report
- Avoid document.write() issue HOT 2
- Documentation feedback: script-injected-tags.md HOT 1
- Compatibility with Lighthouse 10.0.0 HOT 3
- Link checker report
- Link checker report
- Link checker report
- Link checker report
- Link checker report
- Link checker report
- Documentation feedback: async-ad-tags.md HOT 2
- GPT not found and/or ads did not render - even though they did. HOT 1
- Compatibility with Lighthouse 11
- Documentation feedback: total-ad-blocking-time.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from publisher-ads-lighthouse-plugin.