flet
flet copied to clipboard
Offline pyodide.js - local and not from jsdeliver
Discussed in https://github.com/flet-dev/flet/discussions/2264
Originally posted by sklibanov December 23, 2023
Question
So I'm using flet publish (https://flet.dev/docs/guides/python/publishing-static-website/) to make a static website. I want that website to serve everything, including all the packages and js that's going to run inside the browser.
At the top of client/web/python-worker.js however, we have this:
importScripts("https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js");
so it's doing an https fetch from there, not from my local server.
So, I have these questions:
- What other dependencies do we load from the Internet that are not packaged at
flet publishtime? - Is it reasonable to attempt local changes to flet to add support for local copies of everything? Or is it an impossible or misguided task?
Code sample
No response
Error message
No response
------------------------------------------------------
- [X] I have searched for answers to my question both in the issues and in previous discussions.