I am writing a chrome extension where a background task will be started when the user clicks a button. The task will regularly send a GET request to check some variable. Then the user can stop the task by clicking another button.
This is the first time I work with chrome extension, so the first idea was to use web workers, but it seems that Chrome does not allow loading local files for workers.
Is there another way to do it ?