-
Notifications
You must be signed in to change notification settings - Fork 6
How to store ace.js files on Controller's flash #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This requires a bit of effort (for now). <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.11.2/ace.js" type="text/javascript" charset="utf-8"></script> needs to be changed to: <script src="js/ace.js" type="text/javascript" charset="utf-8"></script> Finally ace.js files need to be uploaded to controller into
And optional files:
All of these files are available here (v1.14.0): |
Please link this information on the main README. |
If you want to gzip-compress the ace.js file (makes it 117179 instead of 439253 bytes) you can use my MicroWebSrv.py from https://github.com/gitcnd/MicroWebSrv OR better - use https://github.com/gitcnd/MicroWebSrv/blob/master/microWebSrv-min.py (but name it MicroWebSrv.py).
(you can compress other web files too if you want - not .py of course though). Do not use brotli (gzip only) - brotli is only supported in browsers over HTTPS. |
also, if you want to gzip all the ace files/dependencies, edit the ace.js file and find this text:
and change it to this:-
|
When using the IDE, Internet connection is required because Ace is hosted on cdnjs (to reduce storage requirements); but it's possible to bundle required ace.js files on Controller's flash (raise an Issue and I'll explain how to do it)
I wish to have everything local, as I am using an ESP32 with a LOT of memory that I do not use.
The text was updated successfully, but these errors were encountered: