sstidl 3 месяцев назад
Родитель
Сommit
c4ce1d2731
2 измененных файлов с 6 добавлено и 2 удалено
  1. 2 2
      DESIGN_SWITCH.md
  2. 4 0
      README.md

+ 2 - 2
DESIGN_SWITCH.md

@@ -35,7 +35,7 @@ In Docker deployments, the frontend assets are flattened to root-level subdirect
 
 ## Browser Compatibility
 
-The feature switch uses modern JavaScript features (URLSearchParams, fetch API). It is compatible with all modern browsers. The new design itself requires modern browser features and has no backwards compatibility with older browsers (see `frontend/README.md`).
+The feature switch uses modern JavaScript features (URLSearchParams, XMLHttpRequest). It is compatible with all modern browsers. The new design itself requires modern browser features and has no backwards compatibility with older browsers (see `frontend/README.md`).
 
 ## Enabling the New Design
 
@@ -58,7 +58,7 @@ This will make the new design the default for all users visiting your site.
 You can override the configuration by adding a URL parameter:
 
 - To use the new design: `http://yoursite.com/?design=new`
-- To use the old design: `http://yoursite.com/?design=old`
+- To use the classic design: `http://yoursite.com/?design=classic` or ?design=old
 
 URL parameters take precedence over the configuration file, making them useful for testing or allowing users to choose their preferred design.
 

+ 4 - 0
README.md

@@ -67,6 +67,10 @@ A .NET client library is available in the [`LibreSpeed.NET`](https://github.com/
 
 If you want to contribute or develop with LibreSpeed, see [DEVELOPMENT.md](DEVELOPMENT.md) for information about using npm for development tasks, linting, and formatting.
 
+## Design switch
+
+LibreSpeed supports both the classic and modern UI. The root `index.html` acts as a lightweight switcher and redirects to `index-classic.html` or `index-modern.html` based on `config.json` (`useNewDesign`) or URL overrides (`?design=new` / `?design=old`). For architecture and deployment details (including Docker behavior), see [DESIGN_SWITCH.md](DESIGN_SWITCH.md).
+
 ## Docker
 
 A docker image is available on [GitHub](https://github.com/librespeed/speedtest/pkgs/container/speedtest), check our [docker documentation](doc_docker.md) for more info about it.