From 5e6ff507ad2f3fabd746bbe7e7e9dcb2cab6af94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fco=2E=20Javier=20Mart=C3=ADn=20Carrasco?= Date: Mon, 2 Aug 2021 17:19:44 +0200 Subject: [PATCH] fix: use defer in script load (#122) Co-authored-by: Ahad Birang --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index 793327d..dbf1656 100644 --- a/lib/module.js +++ b/lib/module.js @@ -64,7 +64,7 @@ module.exports = function nuxtAdSense (moduleOptions = {}) { // Add the async Google AdSense script to head this.options.head.script.push({ hid: 'adsbygoogle-script', - async: true, + defer: true, crossorigin: 'anonymous', src: `${AdSenseURL}?client=${options.id}` })