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

Can this package be run in the browser? #23

Open
rivasaugusto opened this issue Jul 30, 2022 · 2 comments
Open

Can this package be run in the browser? #23

rivasaugusto opened this issue Jul 30, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@rivasaugusto
Copy link

Can this package be run in the browser, say as part of a React web application? I've been looking at similar speed tests package and I'm seeing the owners saying that their packages are not meant to be run in the browser. Just wanted to confirm that with this package. I haven't been able to install this package successfully in my React project, so I guess this may be why.

PS: I'm just looking for a way to determine the user's internet speed once they're navigating through my web app, and alert them if they have a slow connection. I know how to estimate this by using the "image approach", but wanted to see if any package already serves this purpose. Thanks.

@rivasaugusto rivasaugusto added the enhancement New feature or request label Jul 30, 2022
@karelkryda
Copy link
Owner

Hi,
I'm honestly not sure. There may be problems (using perf_hooks) due to the time tracking code used. It will be easiest to test this fact. In case there are any problems due to perf_hooks, I am currently working on version 3.0.0, which should solve this.
Thank you for your understanding

@karelkryda
Copy link
Owner

Hello @rivasaugusto,
I just released the release candidate of version 3.0.0.
You can install and test the library using:

npm install --save universal-speedtest@next

The new documentation can be found here: https://karel-kryda.gitbook.io/universal-speedtest/v/3

I hope that if the current version was not compatible with the browser run, the new version will be.
If you would test it and get back to me with the result, I would be happy.

I hope everything will work as expected 😉.
Thank you in advance

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

No branches or pull requests

2 participants