Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.html #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update index.html #137

wants to merge 1 commit into from

Conversation

hamedprog
Copy link

in certain ports, such as 3010, 3020, or …, the site was facing issues with loading, and it wouldn’t load the SVG file. Upon inspection, it was discovered that sometimes, in the following line, el is null:

self.el.style.display = "block";

Initially, the problem was resolved by creating a delay in the execution of the following line:

OpenSpeedTest.Start();

Then, it was determined that the problem could be solved by making changes in the index.html file. We used an iframe instead of an object tag."

@RachelJill
Copy link

in certain ports, such as 3010, 3020, or …, the site was facing issues with loading, and it wouldn’t load the SVG file. Upon inspection, it was discovered that sometimes, in the following line, el is null:

self.el.style.display = "block";

Initially, the problem was resolved by creating a delay in the execution of the following line:

OpenSpeedTest.Start();

Then, it was determined that the problem could be solved by making changes in the index.html file. We used an iframe instead of an object tag."

@@ -153,7 +153,7 @@
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
<object style="visibility:hidden" id="OpenSpeedTest-UI" data="assets/images/app.svg" type="image/svg+xml"></object>
<iframe style="visibility:hidden" id="OpenSpeedTest-UI" src="assets/images/app.svg"></iframe>

<div class="Credits">
<a href="https://openspeedtest.com?ref=Self-Hosted&Run">SpeedTest by OpenSpeedTest™</a> is a Free and <a href="https://github.com/openspeedtest/Speed-Test">Open-Source HTML5 Network Speed Test</a> Software.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker run --restart=unless-stopped --name openspeedtest -d -p 80:3000 -p 443:3001 openspeedtest/latest

版本: '3.3'
服務:
speedtest:
環境:

  • ENABLE_LETSENCRYPT=True
  • DOMAIN_NAME=speedtest.yourdomain.com
  • USER_EMAIL=[email protected]
  • VERIFY_OWNERSHIP=“TXT-FILE-CONTENT”
    重啟: 除非停止
    container_name: openspeedtest
    埠:
  • '80:3000'
  • '443:3001'
    image: openspeedtest/latest

@vishnunuk
Copy link

@RachelJill @hamedprog In the next version, we’ll enhance reliability by verifying that the SVG is fully loaded before initiating the start function. If it’s not yet loaded, the app will seamlessly use XHR to ensure everything proceeds smoothly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants