luc-github / ESP3D-WEBUI

A Web UI for ESP8266 or ESP32 based boards connected to 3D printers / CNC
GNU General Public License v3.0
752 stars 305 forks source link

Split Pages - No single monolithic page #155

Closed Hagar01 closed 3 years ago

Hagar01 commented 3 years ago

Is your feature request related to a problem? Please describe. The monolithic page can take ages to load. Separating out the pages may help keep the load time and memory usage down.

Describe the solution you'd like I would like to see a more relaxed list of files that can be accessed as needed, rather than everything at once.

luc-github commented 3 years ago

using monolitic file save flash size actually split file in different page will increase the flash needs, which is already critical on some systems

the 3.0 has smaller size and use language packs to limit loading resources, the time to load should only take a little the first time, after file should be in cache, but even, it should not take ages, additionally webserver allow one connection at once so spiitting html css js will actually not decrease loading time

what board seetting do you have? may be something is not correct to behave so slow can you share the [ESP420]plain output?

Hagar01 commented 3 years ago

I have 1.7 Mb of flash memory.

Currently index.html.gz uses around 170Kb.

I understand that those with smaller flash need this - but what about those with space to spare?

I am using an ATmega2560+ESP8266 R3 all in one.

It has 4Mb for the ESP8266 formatted for 2MB Flash, 1MB Code.

luc-github commented 3 years ago

well I handle all configurations so the minimal is the reference, 170KB is with all languages - WebUI 3.0 is currently under 100KB nothing prevent you to do you own webUI
and again the loading time should not be long as file is in cache

luc-github commented 3 years ago

ok if no update on this I close issue

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.