Code Monkey home page Code Monkey logo

Comments (8)

jimper avatar jimper commented on May 24, 2024

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.

Bangkokian avatar Bangkokian commented on May 24, 2024

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.

jonkeller avatar jonkeller commented on May 24, 2024

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.

jonkeller avatar jonkeller commented on May 24, 2024

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.

Bangkokian avatar Bangkokian commented on May 24, 2024

from publisher-ads-lighthouse-plugin.

jonkeller avatar jonkeller commented on May 24, 2024

Partially fixed with #193

from publisher-ads-lighthouse-plugin.

jonkeller avatar jonkeller commented on May 24, 2024

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.

Bangkokian avatar Bangkokian commented on May 24, 2024

from publisher-ads-lighthouse-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.