So I have an app that’s running slow, and its at a stage where I cant wait to get it in the hands of some testers, and need some time to dig in to the reasons.
I did put a group on the page with a spinner that closes on full page render, however there is still a delay on refresh before that loads - so here is a solution to indicate something is happening (until i find the actual problem).
Settings > SEO / Metatags
in the script.meta tags header
<script>
$(document).ready(function() {
$(".overlay").hide();
});
</script>
<style>
.overlay {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* HTML: <div class="loader"></div> */
.loader {
width: 64px;
height: 64px;
border: 10px solid #FFF;
border-bottom-color: #ff5a00;
border-radius: 50%;
display: inline-block;
box-sizing: border-box;
animation: rotation 1s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
*/
</style>
Script in the body
<section class="overlay">
<div class="loader"></div>
</section>
Some fun loaders : https://cssloaders.github.io/