Skip to content

Commit

Permalink
refactor: change Google Tag Manager script to load asynchronously and…
Browse files Browse the repository at this point in the history
… remove unnecessary console timing
  • Loading branch information
trungbach committed Jan 3, 2025
1 parent ec52dfd commit b2c516b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<link rel="icon" href="/favicon.svg" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script defer src="https://www.googletagmanager.com/gtag/js?id=G-8T22XRLHXY"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8T22XRLHXY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
Expand Down
2 changes: 0 additions & 2 deletions src/initTokenInspector.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Inspector } from '@oraichain/orai-token-inspector';

console.time('load-inspector');

export const getTokenInspectorInstance = async () => {
if (!window.tokenInspector) {
window.tokenInspector = await Inspector.create({
Expand Down

0 comments on commit b2c516b

Please sign in to comment.