How to make the game run in the background?

Game in HTML5

I need the functions called “void Tick” to work when the game is hidden. But when the game is hidden “Tick” is not called.

How to make “Tick” work in a hidden game