gristlabs / grist-static

Showing Grist spreadsheets on a static website, without a special backend.
https://gristlabs.github.io/grist-static/
Apache License 2.0
91 stars 0 forks source link

Synchronous communication without cross-origin isolation #2

Closed alexmojaki closed 1 year ago

alexmojaki commented 1 year ago

Congrats on making this work!!!!! I'm a little sad I wasn't around to help make it happen...

If cross-origin isolation creates problems, there's another method for communication based on service workers. Since you already have a service worker, there shouldn't be much of a downside. I wrote https://github.com/alexmojaki/sync-message for futurecoder to abstract this stuff away. Also check out https://github.com/alexmojaki/pyodide-worker-runner.

paulfitz commented 1 year ago

Thanks @alexmojaki ! I ran into your name everywhere in github threads when I was hacking on this :-) The cross-origin isolation is indeed a drag.

paulfitz commented 1 year ago

It is possible we may have someone to work on this soon @alexmojaki ;-)