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

prevent flash of unstyled content when the file-uploader is being loaded #409

Open
halafi opened this issue Apr 7, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@halafi
Copy link

halafi commented Apr 7, 2023

right now when you load the page with e.g. lr-file-uploader-regular it takes a while for it to initialise (especially if you use cdn for the css file) which results in a flash of missing content.

is there a recomended approach for server side rendering? or exposed API that can be used to show e.g. spinner or loader before the component is initilalised?

thanks

@nd0ut
Copy link
Member

nd0ut commented Apr 10, 2023

At the moment, we don't have any API like that, but I think we could create an event that fires when styles are loaded so that you can add your own custom loader.

@nd0ut nd0ut added the enhancement New feature or request label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants