Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121817

wasm: make qtloader.js use FS.createPreloadedFile when preloading

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • None
    • Other
    • None

    Description

      qtloader.js currently fetches and copies the preload files manually. Emscripten provides FS.createPreloadedFile for this use case, can we use that function instead?

      The main benefit of this (besides removing removing code from qtloader.js), is that Emscripten runs "preload plugins" for preloaded files. In the case of .so shared object files this will compile the .so to a wasm module ahead of time, which avoids the restrictions that some browsers have on compiling wasm modules synchronously.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            piwierci Piotr Wierciński
            sorvig Morten Sørvig
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes