Commit 28a86153 authored by João Ventura's avatar João Ventura Committed by João Ventura
Browse files

Issue #3226234 by jcnventura: Improving ad performance with the new AdSense code

parent 0b8121a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,4 +16,4 @@ adsense.adsbygoogle:
  version: 1.x
  header: true
  js:
    //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js: { type: external, minified: true, attributes: { defer: true } }
    https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js: { type: external, minified: true, attributes: { defer: true, crossorigin: anonymous } }
+3 −2
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@
 */
#}
{% if not defer %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-{{ client }}"
     crossorigin="anonymous"></script>
{% else %}
  {{ attach_library('adsense/adsense.adsbygoogle') }}
{% endif %}
+3 −3
Original line number Diff line number Diff line
@@ -5,11 +5,11 @@
 */
#}
{% if not defer %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-{{ client }}"
     crossorigin="anonymous"></script>
{% else %}
  {{ attach_library('adsense/adsense.adsbygoogle') }}
{% endif %}
<!-- {{ format }} -->
<ins class="adsbygoogle"
     style="{{ style }}"
     {% if not layout_key %}
+2 −1
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@
 */
#}
{% if not defer %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-{{ client }}"
     crossorigin="anonymous"></script>
{% else %}
  {{ attach_library('adsense/adsense.adsbygoogle') }}
{% endif %}
+3 −2
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@
 */
#}
{% if not defer %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-{{ client }}"
     crossorigin="anonymous"></script>
{% else %}
  {{ attach_library('adsense/adsense.adsbygoogle') }}
{% endif %}
Loading