• Resolved Tony Zeoli

    (@tonyzeoli)


    Frank,

    Hope you’re doing well.

    On this client site, my ads aren’t loading in mobile when Autoptimize is on. I’ve turned of ASYNC, as well.

    Can you check my settings and let me know what I need to leave on/off.

    Tony

    The page I need help with: [log in to see the link]

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, it’s not as much a question of laying blame (for me), but understanding in which case their JS logs state:not_needed really ??

    given there is no explicit JS error that can help point to a possible problem/ culprit, the only thing I can advice is trying to play with the JS optimization exclusions; do ads work with wp-content/themes or wp-content/plugins excluded from optimization? have you tried excluding the advancead folder? or maybe you’re aggregating and you should try “don’t aggregate but defer” + “also defer inline JS” instead? ??

    Henning

    (@henningaa)

    Hi there,

    Thanks for the troubleshooting and sharing the insights. I am still in the process of reproducing the behavior for a more in-depth understanding of what is going on here. I was also not able to provoke the JS error state:not_needed yet.

    We lately located one issue with ads and the option “Also defer inline JS”?in?Dashboard > Settings > Autoptimize > JS, CSS & HTML?that prevents Advanced Ads scripts from being executed correctly. But these were related to other scripts, like our tracking mechanism.
    It would be fascinating if these options work in this case, though.

    I can confirm that image lazy loading prevents image ad from loading in some cases. I was unable to identify any related error message but found that changing the theme also changes the behavior.

    As a fix for the actual behavior, I recommend excluding the Advanced Ads class and all image ads from lazy loading using the Advanced Ads prefix which should be uxpam on your page. After adding this to the Lazy-load exclusions in Dashboard > Settings > Autoptimize > Image optimization the ads should re-appear.

    I will also share your feedback with our team, so the reason for this behavior can be addressed.

    Best regards,
    Henning

    Thread Starter Tony Zeoli

    (@tonyzeoli)

    Thanks, Henning. Will try this solution.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Ads not loading in mobile devices’ is closed to new replies.