-
Notifications
You must be signed in to change notification settings - Fork 8
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
Compress the HTML content #62
Comments
I profiled the site loading network trafic, and found that the full reload time is above 2000ms. Which breaks up like this:
The most of the loading time (4th point) is came from functions.js line 382-401 where are setTimeouts to load data, css files and chip info. When I removed these setTimeouts to load files instantly and moved css files into big one, the load time dropped under 1000ms, because waits were removed, and 2 of 9 TCP socket build up are also removed. But, an issue camed up: sometimes the webserver did not provide content (ex: css file is empty)! I will improve pre_build_web.py to minify further css files (ex: remove comments, line endings) and place into one. With this modificítion we can move loading around 1000-1500ms, becouse removing 3 of 5 setTimeouts and TCP socket build ups. I found an another issue, but don't know yet where it came from: sometimes content delivery pauses for seconds. With detailed logging I will investigate which function is locking in loop(). I think we need a better webserver implementation, which can do at least one of these:
|
@BalazsM
|
Change to code to serve gzipped content to the browser
It will save some space on the ESP device and probably the web serving will be faster.
The text was updated successfully, but these errors were encountered: