diff --git a/src/mixins/nft.js b/src/mixins/nft.js index 7d15e08dc..b51a1f5ee 100644 --- a/src/mixins/nft.js +++ b/src/mixins/nft.js @@ -74,27 +74,6 @@ export default { nftClassCollectionMixin, utmMixin, ], - head() { - // Only load stripe if a wallet is connected - if (!this.getAddress) return {}; - return { - link: [ - { - hid: 'stripe-js-link', - rel: 'preload', - href: 'https://js.stripe.com/v3', - as: 'script', - }, - ], - script: [ - { - hid: 'stripe-js-script', - src: 'https://js.stripe.com/v3', - defer: true, - }, - ], - }; - }, data() { return { NFTHistory: [], diff --git a/src/nuxt.config.js b/src/nuxt.config.js index d10ccfe93..b01ba1f6e 100644 --- a/src/nuxt.config.js +++ b/src/nuxt.config.js @@ -87,6 +87,12 @@ const nuxtConfig = { link: [ { rel: 'preconnect', href: 'https://storage.googleapis.com' }, { rel: 'preload', href: '/vendor/fbq.js', as: 'script' }, + { + hid: 'stripe-js-link', + rel: 'preload', + href: 'https://js.stripe.com/v3', + as: 'script', + }, { rel: 'icon', type: 'image/png', @@ -128,7 +134,12 @@ const nuxtConfig = { })), ], script: [ - { src: '/vendor/fbq.js', type: 'text/javascript', defer: true }, + { src: '/vendor/fbq.js', type: 'text/javascript', async: true }, + { + hid: 'stripe-js-script', + src: 'https://js.stripe.com/v3', + async: true, + }, { hid: 'schema', innerHTML: JSON.stringify([ @@ -259,7 +270,6 @@ const nuxtConfig = { 'www.google.com', 'button.like.co', 'https://js.stripe.com', - 'https://hooks.stripe.com', 'bid.g.doubleclick.net', 'td.doubleclick.net', 'https://likecoin.github.io',