Member Junction
    Preparing search index...

    Library loader class for managing external script loading

    Index

    Constructors

    Properties

    enableProgressiveDelay: boolean = false

    Enable progressive delay for library initialization (useful for test harness)

    Methods

    • Get the version of a loaded library

      Parameters

      • libraryName: string

        Name of the library

      Returns string | undefined

      Version string or undefined if not loaded

    • Inject <link rel="preload" as="script"> tags for core runtime libraries (React, ReactDOM, Babel) so the browser starts downloading them immediately. Call this as early as possible (e.g., in index.html or APP_INITIALIZER).

      This is purely a hint — if the scripts are already cached or loaded, the browser ignores the hint. The actual loadAllLibraries() call still creates <script> tags and waits for execution; preload just ensures the bytes are in the HTTP cache by the time that happens.

      Parameters

      • debug: boolean = false

        Whether to preload development builds (default: false = production)

      Returns void