The Worklet interface is a lightweight version of Web Workers and gives developers access to low-level parts of the rendering pipeline. Available only in secure contexts.
Worklet
MDN Reference
The addModule() method of the Worklet interface loads the module in the given JavaScript file and adds it to the current Worklet.
addModule()
Optional
The
Workletinterface is a lightweight version of Web Workers and gives developers access to low-level parts of the rendering pipeline. Available only in secure contexts.MDN Reference