Hi,
I was wondering if anyone tried to uglify brython.min.js (it rewrites the name of some local variables to shorter ones). If so, did it work or did it explodes ? Was the gain significant ?
Also, brython.min.js is quite big (almost 1MB). Do you know if it is possible to build one without some builtin modules ?
TBF I'd find quite interesting to have a "brython_bare.js" (for dev and to see the size), that'd include 0 modules, only the bare minimum to execute Python code, downloading missing modules when needed (just like when brython_sdlib.js is missing). Then could have a tool like the one for brython_stdlib.js to build our own "brython.js" tailored to our specific needs.
Having smaller files means quicker initial page load (which could be significant on smartphones), therefore better SEO scores (which could be a constraint for some devs).
Cordially,