1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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