Makie.jl icon indicating copy to clipboard operation
Makie.jl copied to clipboard

Loading logo WGLMakie page

Open AlexisRenchon opened this issue 3 years ago • 4 comments

It would be great to have a loading logo while a WGLMakie page loads. For example, https://cupoftea.earth/carbvis/, just shows a blank page for 10 seconds until the figure finally appears. It would be helpful to have a loading logo to warn page visitors that there is a "work in progress". Currently, each time I share a link with colleagues, I warn them "the page takes about 10 seconds to load", so that they don't close it early thinking it is not working... Might be quite easy to implement, big reward?

AlexisRenchon avatar Aug 01 '22 21:08 AlexisRenchon

I think is more a css thing than a Makie thing. I did it here adding some css styling and some minor js. (Sorry, at the moment I don't have a minimal thing that you can copy/paste).

lazarusA avatar Aug 02 '22 11:08 lazarusA

I see. WGLMakie / JSServe is generating html with css and js though, so these could be added? I understand it should be optional, you probably don't want to add it for a quick loading figure.

(BTW, really cool stuff @lazarusA https://github.com/lazarusA/ClimateVisualisations. Makes me think of https://cupoftea.earth/ by me and https://this-is-fine.org/ by @SimonDanisch. Would be cool to join our effort some day.)

AlexisRenchon avatar Aug 02 '22 13:08 AlexisRenchon

yeah, is mainly based on Simon's work. Specially the css tricks. And for now, that repo is just an external server for the main webpage here: https://www.bgc-jena.mpg.de/en/bgi/gallery I will be adding more makie stuff here and there on a weekly/monthly basis.

lazarusA avatar Aug 02 '22 13:08 lazarusA

Ok. Now there is a skeleton to do an app with a loading logo here. Note: slider1 [not working].

Output here

Feel free to recommend (cite) the site 😄.

Maybe close the issue if this solves your problem.

lazarusA avatar Aug 03 '22 11:08 lazarusA