brepjs API Reference
    Preparing search index...

    Function prewarm

    brepjs — Public API

    • Trigger OCCT's deferred internal initialization by performing a trivial geometry operation. The first OCCT call in a WASM session incurs a ~400-900ms JIT penalty; calling prewarm() during idle time (e.g., after init() resolves but before user interaction) moves this cost off the critical path.

      Safe to call multiple times — only the first call does work.

      Returns void

      await init();
      prewarm(); // fire-and-forget during idle time