adsense ads not loading with ngx_pagespeed

Discussion in 'Programming' started by duzap, Mar 4, 2015.

  1. #1
    Hi,

    I have installed ngx_pagespeed from google and enabled the javascript_defer filter.
    When I enable this filter, my adsense ads don't appear.

    I checked my console and found the following error:
    Uncaught Error: adsbygoogle.push(): All ins elements in the DOM with class=adsbygoogle already have ads in them.

    Note that with javascript_defer disabled there are no issues.


    How can I have my adsense work with this filter?

    Thanks
     
    duzap, Mar 4, 2015 IP
  2. wrekoniz3

    wrekoniz3 Well-Known Member

    Messages:
    2,232
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    190
    #2
    Not to sound stupid, because this might be unrelated, however...

    Are you using the variable for Cache Busting on google's tags? If not, that might be something to try. I have seen where ads have issues because of the way the pages they are on get cached.
     
    wrekoniz3, Mar 4, 2015 IP