jDownloadsownloads.com

Advertisement
Advertisement:

Author Topic: Problem with asynchronous google adsense script - [Solved]  (Read 5217 times)

0 Members and 1 Guest are viewing this topic.

Offline bositman

  • Newbie
  • *
  • Posts: 49
Joomla version:  2.5.18
jDownloads version: 1.9.1.5 Stable
System info: ubuntu 12.04.1 , PHP 5.3.10, Apache 2.2.22
Tried deactivating cache and compress options but the issue persists.

The issue: When trying to use the new google adsense async script, the script does not work, since some of the code is stripped/missing.
This is the original script:
Code: [Select]
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ad unit description -->
<ins class="adsbygoogle"
     style="display:inline-block;width:468px;height:60px"
     data-ad-client="blahblah"
     data-ad-slot="blahblah"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

and this is what jDownloads inserts on the page:

Code: [Select]
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ad unit description -->
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

So everything in the <ins code is missing, thus no advertisement is being displayed. I tried using both the {google_adsense} tag with the Activate Google AdSense code option of jDownloads and inserting it into a layout directly, but it still did not include the <ins code.

The old non async script of adsense works fine but I'd very much like to upgrade for speed.

Thanks in advance :)
« Last Edit: 14.11.2014 13:46:21 by Arno »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.110
    • jDownloads.com
Re: Problem with asynchronous google adsense script
« Reply #1 on: 17.03.2014 12:21:12 »
Hi,
have not read before about this new scripts.
So i will check it for the new version 2.5 (comes in the next days)
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline bositman

  • Newbie
  • *
  • Posts: 49
Re: Problem with asynchronous google adsense script
« Reply #2 on: 14.11.2014 12:49:48 »
I am happy to report that the async scripts work fine with v 3.2.16 of jdownloads :)

 

Advertisement