Skip to content

Commit

Permalink
Workaround to address Google fonts blocking the page to be rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyzhen committed Jul 3, 2024
1 parent 61de015 commit 832696f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@
<!-- Warm up connection for better performance in loading Google Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
<!-- Google Material Icons -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" media="print" onload="this.onload=null;this.removeAttribute('media');" fetchpriority="high">

<!-- no-JS fallback -->
<noscript>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</noscript>


<!-- Clarity tracking code -->
<script type="text/javascript">
Expand All @@ -54,9 +60,6 @@
})(window, document, "clarity", "script", "igkabpsgqm");
</script>

<!-- Siteimprove Analytics -->
<script async src="https://siteimproveanalytics.com/js/siteanalyze_80352.js"></script>

<title>MoTrPAC Data Hub</title>
</head>
<body>
Expand All @@ -74,5 +77,8 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->

<!-- Siteimprove Analytics -->
<script async src="https://siteimproveanalytics.com/js/siteanalyze_80352.js"></script>
</body>
</html>

0 comments on commit 832696f

Please sign in to comment.