Is it possible on WP to run a background process for js?
There is a need to make a background process in which the asynchronous js function is launched. She is a handler of some API (there is no access to this API, because this is all done under the hood of the function). And now you need to make sure that this function is constantly active.
It is not an option to load it one time.
To place the code, please use CodePen or similar tool. Thanks you!