Machine learning charts quicker only when I click on another tab and back

Dash employing quantum mechanics?

I’m doing some machine learning with dash, and there is some substantial overhead as it takes 1-2 mins for it to update. However, If I click on another internet tab, wait 5 seconds, and return back to my site, it takes 15 seconds total.

What do you guys think is causing this?