Skip to content

Commit

Permalink
chore: split preconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
robsongajunior committed Apr 3, 2024
1 parent d37b2dd commit 71f53b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/components/trd3/google/analytics.astro
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<link rel="preconnect" href="https://www.google-analytics.com" />
<script is:inline defer>
(function() {
if (window.location.origin !== 'https://www.robsonjunior.dev' || window.location.search.match(/trd3=false/)) {
Expand Down
2 changes: 0 additions & 2 deletions src/components/trd3/google/gtm-script.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

<link rel="preconnect" href="https://www.googletagmanager.com/" />
<link rel="preconnect" href="https://www.google-analytics.com" />

<script defer is:inline type="text/javascript">
(function() {
window.dataLayer = window.dataLayer || [];
Expand Down

0 comments on commit 71f53b5

Please sign in to comment.