Skip to content

Commit

Permalink
fix: use defer in script load (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: Ahad Birang <[email protected]>
  • Loading branch information
javray and farnabaz authored Aug 2, 2021
1 parent 99a5bad commit 5e6ff50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
})
Expand Down

0 comments on commit 5e6ff50

Please sign in to comment.