From b3283fd9fff8f8faf7957b79e96dee3c3dc10399 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 17 Jan 2024 09:53:05 +0700
Subject: Update _documents.jsx for performance

---
 src/pages/_document.jsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src/pages/_document.jsx')

diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx
index 8eb3f15e..fc9f2ee0 100644
--- a/src/pages/_document.jsx
+++ b/src/pages/_document.jsx
@@ -10,6 +10,7 @@ export default function MyDocument() {
         <link rel='preconnect' href='https://connect.facebook.net' />
         <link rel='preconnect' href='https://googleads.g.doubleclick.net' />
         <link rel='preconnect' href={process.env.NEXT_PUBLIC_ODOO_API_HOST} />
+        <link rel='prefetch' href='/images/logo-indoteknik-gear.png' />
 
         <link rel='icon' href='/favicon.ico' />
         <link rel='manifest' href='/manifest.json' />
@@ -25,8 +26,6 @@ export default function MyDocument() {
         <meta name='apple-mobile-web-app-title' content='Indoteknik.com' />
         <meta name='theme-color' content='#fff' />
 
-        <link rel='prefetch' href='/images/logo-indoteknik-gear.png' />
-
         <meta
           name='facebook-domain-verification'
           content='328wmjs7hcnz74rwsqzxvq50rmbtm2'
@@ -39,6 +38,7 @@ export default function MyDocument() {
         />
 
         <Script
+          async
           id='google-analytics-ua'
           strategy='beforeInteractive'
           dangerouslySetInnerHTML={{
@@ -58,6 +58,7 @@ export default function MyDocument() {
         />
 
         <Script
+          async
           id='google-analytics-ga'
           strategy='beforeInteractive'
           dangerouslySetInnerHTML={{
@@ -71,6 +72,7 @@ export default function MyDocument() {
         />
 
         <Script
+          async
           id='google-tag-manager'
           strategy='afterInteractive'
           dangerouslySetInnerHTML={{
@@ -90,6 +92,7 @@ export default function MyDocument() {
         />
 
         <Script
+          async
           id='google-ads'
           strategy='afterInteractive'
           dangerouslySetInnerHTML={{
-- 
cgit v1.2.3

