From 6b94fe0ebad4a0e3fa3fee9ea9154ba95a467f2c Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 27 Mar 2024 22:46:21 +0200 Subject: [PATCH] Optimize webserver speed --- .../src/devboard/webserver/cellmonitor_html.cpp | 2 +- Software/src/devboard/webserver/events_html.cpp | 2 +- Software/src/devboard/webserver/index_html.cpp | 16 ++++------------ .../src/devboard/webserver/settings_html.cpp | 2 +- Software/src/devboard/webserver/webserver.cpp | 4 ++-- 5 files changed, 9 insertions(+), 17 deletions(-) diff --git a/Software/src/devboard/webserver/cellmonitor_html.cpp b/Software/src/devboard/webserver/cellmonitor_html.cpp index eacb0e87..79b734ef 100644 --- a/Software/src/devboard/webserver/cellmonitor_html.cpp +++ b/Software/src/devboard/webserver/cellmonitor_html.cpp @@ -2,7 +2,7 @@ #include String cellmonitor_processor(const String& var) { - if (var == "PLACEHOLDER") { + if (var == "ABC") { String content = ""; // Page format content += "

Battery Emulator

%PLACEHOLDER% +Battery Emulator

Battery Emulator

%ABC% )rawliteral"; /* The above code is minified to increase performance. Here is the full HTML function: Battery Emulator - +

Battery Emulator

- %PLACEHOLDER% - + %ABC% */ diff --git a/Software/src/devboard/webserver/settings_html.cpp b/Software/src/devboard/webserver/settings_html.cpp index 5d94c57e..94ca006d 100644 --- a/Software/src/devboard/webserver/settings_html.cpp +++ b/Software/src/devboard/webserver/settings_html.cpp @@ -2,7 +2,7 @@ #include String settings_processor(const String& var) { - if (var == "PLACEHOLDER") { + if (var == "ABC") { String content = ""; //Page format content += "