Loading Overlay
A card with a button that shows a full-card loading spinner overlay.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="card border-0 shadow-sm position-relative" style="max-width:300px"><div class="card-body"><h6 class="fw-bold">Dashboard</h6><p class="small text-secondary mb-0">Content loads here.</p></div><div class="position-absolute top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center bg-white bg-opacity-75" id="soOver" style="display:none!important"><div class="spinner-border text-primary"></div></div><div class="card-footer bg-white"><button class="btn btn-primary btn-sm w-100" id="soBtn">Reload</button></div></div>document.getElementById("soBtn").onclick=function(){var o=document.getElementById("soOver");o.style.setProperty("display","flex","important");setTimeout(function(){o.style.setProperty("display","none","important")},1500)};Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.