librespeed / speedtest

Self-hosted Speed Test for HTML5 and more. Easy setup, examples, configurable, mobile friendly. Supports PHP, Node, Multiple servers, and more
https://librespeed.org
GNU Lesser General Public License v3.0
12.29k stars 2.21k forks source link

Move Source Code link outside of JavaScript created link #554

Open JacksonChen666 opened 1 year ago

JacksonChen666 commented 1 year ago

Description

Move the Source Code link outside of JavaScript created link, so that it is visible even without JavaScript enabled.

Why it should be implemented

If you disable JavaScript, you can't see the link.

If the person with JavaScript disabled wants to see the source code, they can't.

Optional: implementation suggestions

If you have experience in this field, feel free to give us suggestions

Don't put all the unchanging HTML in JavaScript! (That includes that very specific source code link)

Optional: screenshots

Note: Dark Reader is enabled

JavaScript disabled, it forever loads and never shows the source code link:

Screenshot of librespeed.org, uBlock Origin extension overlay is also in the screenshot showing that Scripting is disabled.

JavaScript enabled, link is available after pinging servers:

Screenshot of librespeed.org functioning normally, test not started