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