blocks icon indicating copy to clipboard operation
blocks copied to clipboard

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

Open halafi opened this issue 2 years ago • 1 comments

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

halafi avatar Apr 07 '23 09:04 halafi

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 avatar Apr 10 '23 10:04 nd0ut