• Hello all,

    I have Autoptimize and Async JavaScript enabled and set to deferred but my inline Amazon Native Ads are not deferred/showing as my main load issue in GTMetrix and Pingdom. Any ideas on how to remedy this (I want to defer/lazy load the ads).

    Thanks!

    K

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm … what you could do (assuming you enter the code manually) is changing <script src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"> into <script async src="//z-na.amazon-adsystem.com/widgets/onejs?MarketPlace=US"> ?

    Thread Starter hermes980

    (@hermes980)

    Thank you!

    I will give that a try. I know Amazon is slowly rolling out the async support. What can I do about my inline scripts? Each ad has a script so if I do a review of 11 products, it’s alot of calls. Does async JS defer the inline scripts?

    Regards,

    Kelly

    Thread Starter hermes980

    (@hermes980)

    Looks like Amazon doesn’t support async on their Native Ads yet. I tried that and the ad failed to show…

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ahh, that’s bad, any documentation on the amazon site about that?

    re. inline JS; that is not render blocking (it’s just a bunch of variables being set).

    Thread Starter hermes980

    (@hermes980)

    Mmmm, any idea what could be causing the render blocking? It’s worth noting that I have CloudFlare.

    Here is the Amazon Doc where they only support recommendation ads for Async (meaning my individual ads don’t have Async): https://affiliate-program.amazon.com/help/topic/t423?ac-ms-src=recofaqasyncguide

    • This reply was modified 6 years, 2 months ago by hermes980.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    any idea what could be causing the render blocking?

    well, typically the linked Amazon JS.

    Here is the Amazon Doc where they only support recommendation ads for Async

    that’s a pity .. there might be some (ugly) tricks to get this working async, but you’ll need a JS dev for that.

    Thread Starter hermes980

    (@hermes980)

    Thank you for the guidance. So, to be clear, Async JavaScript (the plugin) does not defer the inline Amazon JS?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no, asyncJS only asyncs (or defers) <script src=""> JS, not <script>

    Thread Starter hermes980

    (@hermes980)

    Thank you!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, have a nice weekend hermes980 ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Amazon Native Ads Not Deferred’ is closed to new replies.