Start using web workers with the Comlink library github.com/GoogleChromeLabs/comlink