ReactPHP event loop with periodic timer blocking code after start

I am using the ReactPHP event loop with periodic timer. The code works but the browser always shows that the activity is going on (the circle on the chrome tab is always running) and it runs only once.

Is it possible to get rid of the running circle and still the periodic loop should run in loop at given intervals to execute the code within the loop. Please advise.

Check the circle on the Google Chrome Tab in this image

Below is my code,

**getAll($temp) is a function with parameter in another .php file. I have got the file as include in my current .php file.

$Loop=React\EventLoop\Factory::create();

$Loop->addPeriodicTimer(5, function(React\EventLoop\TimerInterface $timer) use(&$temp, $Loop, &$Total)
{
    try{
        $Total = getAll($temp);
        echo"<script>document.getElementById('Overall').innerText=".$Total."</script>";
    }
    catch (Exception $e){
        echo "Error in Loop";
        throw $e;
    }
});

====================================================