jQuery append Google Adsense to div

后端 未结 10 526
醉梦人生
醉梦人生 2020-11-29 06:05

I\'m having issues with google adsense and it loading before my jQuery and killing my codes, so I thought I\'d try to append the Google Adsense javascript to the appropriate

10条回答
  •  遥遥无期
    2020-11-29 06:39

    You can't include external scripts that way.

    To include javascript after the page has loaded, you should use jQuery's jQuery.getScript() function, but I don't know if that would work for Google Adsense.

    A little more info can be found here:

    http://geek.littleredstring.com/17-load-adsense-last-jquery

提交回复
热议问题