From e03dcaa1830859743a6c896e3b169b473e5289f6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 1 Jun 2026 01:02:54 +0800 Subject: [PATCH] docs(webui): record HTML partial split decision --- webui/partials/README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 webui/partials/README.md diff --git a/webui/partials/README.md b/webui/partials/README.md new file mode 100644 index 0000000..daf0020 --- /dev/null +++ b/webui/partials/README.md @@ -0,0 +1,27 @@ +# `index.html` Partial Split Decision + +## Current State + +- `webui/index.html`: 1249 lines (current snapshot) +- Existing static loading chain is stable after CSS/JS split tasks. + +## Decision + +Do **not** split `index.html` in the current execution plan. + +Reason: +- Current page still relies on static ordering and direct DOM presence for startup wiring. +- Immediate partialization would introduce runtime behavior changes (injection/fetch/build) outside Task 13 scope. +- The active goal is to continue safe large-file decomposition without regressing existing WebUI behavior. + +## If We Need to Split Later + +Pick one strategy explicitly before implementation: + +1. Server-side partial injection in `gui/web_gui.py` +2. Client-side fetch of static partial fragments +3. Build-time HTML generation + +## Recommendation + +Prefer **server-side partial injection** if we want to reduce HTML size while keeping one-page delivery and avoiding additional client bootstrap complexity.