Skip to content

Commit

Permalink
feat: async stats
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed Nov 23, 2024
1 parent fa37a32 commit 2a02366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function viteBuildScript() {
name: 'vite-build-script',
transformIndexHtml(html) {
if (process.env.NODE_ENV === 'production') {
return html.replace(/<!-- Stats production build insert -->/, `<script defer src="https://stats.chromatone.center/script.js" data-website-id="07039690-8627-4888-bbe3-2047fd7ce785"></script>
return html.replace(/<!-- Stats production build insert -->/, `<script async defer src="https://stats.chromatone.center/script.js" data-website-id="07039690-8627-4888-bbe3-2047fd7ce785"></script>
<script>
if ('serviceWorker' in navigator) {
Expand Down

0 comments on commit 2a02366

Please sign in to comment.