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

Performance Differences between Chrome and Firefox #191

Open
TobiasFellinger opened this issue Nov 27, 2024 · 1 comment
Open

Performance Differences between Chrome and Firefox #191

TobiasFellinger opened this issue Nov 27, 2024 · 1 comment

Comments

@TobiasFellinger
Copy link

I observe huge performance differences between the same App running on Chrome (and similar browsers like Edge) and Firefox. I tested this on Windows, Linux and Android. I did not have the opportunity to check this on OsX and Safari.

I was not able to find out more details (I'm not a web developer) but it seems to be related to graphics output. I'm not sure if this is a web-r or shinylive problem if this has to be fixed on the browser level or if there's a way to avoid this by writing the shiny-app better.

The app I experince this with is in this Repo and is also hosted on github pages here.

@wch wch transferred this issue from posit-dev/r-shinylive Nov 27, 2024
@wch
Copy link
Collaborator

wch commented Nov 27, 2024

I'm able to reproduce this behavior on my Mac: on Chrome, in the Scenarios tab when I click the Redraw button, it takes about 1s for the plots to re-render. On Firefox, it's about 10s. (Note that the application is in R, so it is running in webR.)

The plots did not work on Safari for me: I get an error message in the JS console saying "Maximum stack size exceeded".

This is likely due to different implementations of their WASM engines, which we don't have control over. But I wonder if it we're hitting some particular speed bumps in their WASM implementation that could be avoided.

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

No branches or pull requests

2 participants