js-sdk icon indicating copy to clipboard operation
js-sdk copied to clipboard

Impossible to load Lit client in some web browsers

Open ranile opened this issue 7 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

SDK version

7.0.4

Lit Network

DatilDev

Description of the bug/issue

WebAssembly.Compile is disallowed for modules over 4KB on some browsers on main thread. Lit SDK uses this method and thus is not loadable

See:

  • https://stackoverflow.com/questions/45284788/webassembly-compile-is-disallowed-on-the-main-thread-if-the-buffer-size-is-larg
  • https://github.com/webpack/webpack/issues/6475

Note that this only has only popped up when loading lit sdk in chrome on android when running in webview for me. User agent as indicated by browser is: Mozilla/5.0 (Linux; Android 13; Pixel 4a Build/TQ3A.230805.001.S2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/109.0.5414.123 Mobile Safari/537.36

Severity of the bug

Unable to load lit at all

Steps To Reproduce

Try to sign a message inside a webview on an android phone with chrome as browser

Link to code

No response

Anything else?

No response

ranile avatar Jun 02 '25 08:06 ranile