Skip to content

An option to disable the loading spinner #860

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

Open
zachcp opened this issue Feb 18, 2024 · 2 comments
Open

An option to disable the loading spinner #860

zachcp opened this issue Feb 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@zachcp
Copy link

zachcp commented Feb 18, 2024

Thanks Framework Team - this is really great.

Currently, unresolved promises show a rotating arrow as seen here. In some cases it would be nice to toggle the visibility for reactive in puts - e.g. don't show anything at all until the promise resolves. Maybe there is already a way to do that - in which case adding a bit more to the Promises docs would be quite helpful.

@zachcp zachcp added the enhancement New feature or request label Feb 18, 2024
@mbostock mbostock changed the title Do not show unresolved promises An option to disable the loading spinner Feb 19, 2024
@mbostock
Copy link
Member

One way to do this is with a style:

.observablehq--loading::before {
  display: none;
}

Can you talk more about when/why you’d want to turn this off? Like, for a specific code block, for a page, or globally? I think it’s generally good to show that some computation is happening to the user.

You may also be able to bypass the spinner by not writing blocking code, but I’ll need to understand the use case a bit better to suggest a specific solution.

@zachcp
Copy link
Author

zachcp commented Feb 19, 2024

Thanks @mbostock . Long time listener; first time caller.

  • I've been playin around with Tauri (RUST backend + any web-frontend) for making a compute-heavy bioinformatics-focused application.
  • I want to do things like get stats on common bioinformatic files and make some graphs with Observable.
  • I like the file-based routing as I can keep each little utility separate.
  • a typical page might be a multipart form with a file-chooser (from Tauri) and a submit button.
  • I'm trying to find more control over displaying outputs

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