Skip to content

Commit c4ce1d2

Browse files
committed
doc: design-switch
1 parent 6693c7e commit c4ce1d2

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

DESIGN_SWITCH.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In Docker deployments, the frontend assets are flattened to root-level subdirect
3535

3636
## Browser Compatibility
3737

38-
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`).
38+
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`).
3939

4040
## Enabling the New Design
4141

@@ -58,7 +58,7 @@ This will make the new design the default for all users visiting your site.
5858
You can override the configuration by adding a URL parameter:
5959

6060
- To use the new design: `http://yoursite.com/?design=new`
61-
- To use the old design: `http://yoursite.com/?design=old`
61+
- To use the classic design: `http://yoursite.com/?design=classic` or ?design=old
6262

6363
URL parameters take precedence over the configuration file, making them useful for testing or allowing users to choose their preferred design.
6464

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ A .NET client library is available in the [`LibreSpeed.NET`](https://github.com/
6767

6868
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.
6969

70+
## Design switch
71+
72+
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).
73+
7074
## Docker
7175

7276
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.

0 commit comments

Comments
 (0)