If you want to run the worker for a long time, you must configure your browser to prevent browser freeze and you can also perform other activities in the same browser while the worker is running.
Please follow the instructions:
Please copy chrome://flags/#calculate-native-win-occlusion
and paste it in your browser then disable the Calculate window occlusion on Windows section.
Once your browser is configured, you will no longer get violations about invisible windows, this does not apply if you click minimize windows.
Regards