PokéRogue
    Preparing search index...

    Interface Worklet

    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.

    MDN Reference

    interface Worklet {
        addModule(
            moduleURL: string | URL,
            options?: WorkletOptions,
        ): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    Methods

    • The addModule() method of the adds it to the current Worklet.

      MDN Reference

      Parameters

      Returns Promise<void>