From d62798edb95bad1ed52747ad757c3c03b18123ec Mon Sep 17 00:00:00 2001 From: William Chong Date: Wed, 20 Nov 2024 08:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Preload=20gtag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index a3d79a2..0610333 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -7,8 +7,12 @@ export default defineNuxtConfig({ { name: 'og:title', content: 'CBOR to JSON Online Converter' }, { name: 'description', content: 'Easily convert data between CBOR (Concise Binary Object Representation) and JSON (JavaScript Object Notation) formats with this online web decoder.' } ], + link: [ + { rel: 'preload', as: 'script', href: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5384552213891537', crossorigin: 'anonymous' }, + { rel: 'preload', as: 'script', href: 'https://www.googletagmanager.com/gtag/js?id=G-PG6KXFFZPF' }, + ], script: [ - { src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5384552213891537', async: true, crossorigin: 'anonymous' }, + { src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5384552213891537', async: true, crossorigin: 'anonymous', body: true }, ], }, },