Category Siblings element waits for Google Adsense ad to load until visible

Posted in: Newspaper
Post count: 195

In the last days I have been experimenting with my site to further improve my pagespeed and I noticed that the Category Siblings element waits for all google ads to load until it becomes visible. If I have a page with 0 ads – it loads very fast, if there are a few ads – it becomes slow.

I recorded this video for you to see what I mean – https://www.loom.com/share/f38b046e6a854accabc86c340c858f5b?sid=9fc17783-cba0-4c7a-9f6b-233767758927

Is there a way to ensure that all the theme’s elements are loaded and then load the ads? Because the category element is on top of my page and it is one of the first things a user sees?

Post count: 27744

HI,

Did you add the code that I provided here https://forum.tagdiv.com/topic/delay-javascript-execution-question/?

Thank you!

Post count: 195

Yes, but the result is bad – we get a layout shift. So my question is “Is there a way to ensure that all the theme’s elements are loaded and then load the ads?”

Post count: 27744

Hello,

The only solution is to set the elements in the other row, leave them inline https://i.imgur.com/l7yQx7J.png, and use that code.

Thank you!

Post count: 195

I did something else that works fine for me, instead of using the Category Sibling element that looks really bad with this layout shift (it just goes offscreen and then settles back, its just awful) I used mobile horizontal menu or something like this. This elements loads first and it doesn’t wait for everything else.

Is there any reason for these elements to work like that?

Post count: 27744

Hi,

This is how they were made to work like this.

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.