Skip to main content

Maybe collapse ad units if not ads?

Completed

Comments

3 comments

  • John
    • Journey Support Team

    Hi Muhammad,

    Thanks for reaching out. The ad boxes that you sent a screenshot of are designed to keep the ads from causing any CLS issues when they load in. The ad boxes load in first, and then the individual ads can load and refresh inside of the ad boxes. If the boxes didn't reserve the space, the ads could cause CLS by pushing down other content when the load in.

    One additional thing to keep in mind is that you're likely being served fewer ads than a typical reader since you're likely on the site more often and may be out of premium impressions. 

    Thanks!!

    0
  • Muhammed Hanny Sabbagh

    John Thanks for your answer.

    As far as I know, CLS is only affected if the content changes after a page load. As long as ads are not in the viewport after the page load, then there should be no effect on the CLS score.

    The user, before starting any interaction with the page, will not see ads (if they don't exist) because the ad script has already decided to collapse the ad units, which should not cause a CLS loss in score. Ad units are already out of reach from his/her view, so collapsing them should not affect CLS.

    https://web.dev/articles/cls

    Again I emphasize that Google already does this; if it is causing issues like you described then Adsense would have kept empty ads all over the place - but they don't, suggesting that indeed this is something possible.

    Hint: Journey ads/Grow are already causing a big loss in Pagespeed score because of script blocking:

    0
  • Support
    • Journey Support Team

    Hi Muhammed Hanny Sabbagh ! CLS isn't only measured for the first viewport – it's measured throughout the lifespan of a page. This is from one of Google's articles on CLS:

    "CLS is a measure of the largest burst of layout shift scores for every unexpected layout shift that occurs during the entire lifecycle of a page."

    So if the ad boxes were to expand/collapse dynamically, this would cause CLS. This is how ads used to load a few years back and it did cause CLS, which is why we use the ad boxes. The ad boxes are specifically designed to prevent CLS and are used on over 10k Mediavine and Journey sites, so we can confidently say they don't cause CLS. They're also great for ad viewability/performance since the ad scrolls with the user.

    If you have further questions about the inview ad boxes you can refer to this existing thread, and you can refer to this thread for a variety of page speed resources and more information about Journey and page speed if you're interested!

    0

Journey is Self Supported

Our support staff is monitoring this forum everyday for bugs related to ad delivery, the display and functionality of the Journey dashboard, and any bugs related to the onboarding process. We are typically unable to assist with non-bug related issues like RPM performance expectations, issues setting up the ads.txt file, and questions already answered by our existing help docs. Read here for a more detailed breakdown of how Journey is self-supported and our recommendations for how to find answers to common issues.

Post is closed for comments.

Powered by Zendesk