You can block it with while loop
<script> (function() { const delay = 3000; // delay in ms const start = Date.now(); while (Date.now() - start < delay) { // block html loading } })(); </script>