Skip to content

Commit

Permalink
Remove external scripts asynchronous load
Browse files Browse the repository at this point in the history
  • Loading branch information
VPagani committed Feb 11, 2023
1 parent 75521e7 commit 1fee756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/components/external/google-setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import Script from "next/script";
export default function GoogleSetup() {
return (
<>
<Script async src="https://www.googleoptimize.com/optimize.js?id=OPT-KTW99F9" />
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-JNW55GWE94" />
<Script src="https://www.googleoptimize.com/optimize.js?id=OPT-KTW99F9" />
<Script src="https://www.googletagmanager.com/gtag/js?id=G-JNW55GWE94" />
<Script
id="google-analytics"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
Expand Down
1 change: 0 additions & 1 deletion src/components/external/hotjar-setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default function HotjarSetup() {
<>
<Script
id="hotjar"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `
(function(h,o,t,j,a,r){
Expand Down

0 comments on commit 1fee756

Please sign in to comment.