  <button class="btn" id="retryBtn" type="button">Retry Connection</button>
    </div>
</div>

<script>
    function goHomeIfOnline() {
        if (navigator.onLine) {
            window.location.replace("/");
        }
    }

    window.addEventListener("online", goHomeIfOnline);
    goHomeIfOnline();

    document.getElementById("retryBtn")?.addEventListener("click", () => {
        fetch("/", {method: "HEAD", cache: "no-store"})
            .then(response => {
                if (response.ok) {
         