Skip to content

Commit

Permalink
faster template
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Jun 2, 2023
1 parent dbefc6d commit a6db9b5
Show file tree
Hide file tree
Showing 2 changed files with 1,303 additions and 25 deletions.
8 changes: 4 additions & 4 deletions app/_includes/base.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@
opacity: 0;
}
}
</style>
<script id="loadingscript">
window.addEventListener('load', function(e) {
</style>
<script id="loadingscript">
window.addEventListener('haxcms-ready', function(e) {
// give the web components a second to build
setTimeout(function() {
document.querySelector('#loading').classList.add('loaded');
Expand All @@ -242,7 +242,7 @@
document.querySelector('#loadingstyles').parentNode.removeChild(document.querySelector('#loadingstyles'));
document.querySelector('#loadingscript').parentNode.removeChild(document.querySelector('#loadingscript'));
}, 600);
}, 1000)
}, 100)
});
</script>
</head>
Expand Down
Loading

0 comments on commit a6db9b5

Please sign in to comment.