Hello, I need your help.
Im trying run code after few seconds (5s).
I tryed sleep() function, but the sleep function stop whole page for 5seconds.
I explain what to you what Im trying.
I have loading bar, loading for 5s.
for example:
<div class="loadingbar" style="--width: 10" data-label="Loading..."></div>
<?php
// After 5s I need start this code and hide loading bar in this page, without redirecting.
echo "sucesfully loaded"
Is it possible, please?
If yes, how to do?
If hiding the loading bar is not possible, how to just wait 5s for the code start?
Many thanks!