Skip to content

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

<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=you@yourdomain.com
  • 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.

4 participants