@koffienl said:
@Harry-van-der-Wolf said:
I did see some optimisation in extracting common code into one (or a few) .js file(s). That would make the code slightly harder to read, but it would reduce the kilobytes by approximately 40-50%
Interesting Can you show some code?
I will fork your repo and show you. I have some “other things” to do this afternoon, so that might be later in the evening.
At this moment I’m testing with a few other options: - Compress every webfile with .gz
Please don’t. gunzipping files in memeory will even require more memory, be it not on the spiffs unless you also require temporary space to gunzip.
I was thinking to strip the entire navbar from HTML and let it receive through jquery. Would make the HTML smaller and I don’t have to edit every single HTML when there is a change in the navbar.
That’s exactly what I did but without jquery. Just plain javascript to keep it simpler and more compatible.