NFDI4Chem / nmrium-react-wrapper

A wrapper around NMRium react component to enable seamless integration into third-party applications built on any modern framework.
https://nmrium.nmrxiv.org
MIT License
9 stars 2 forks source link

Loading icon rendering #124

Closed CS76 closed 11 months ago

CS76 commented 1 year ago

Instead of showing the "Drag and drop here a JCAMP-DX, Bruker folder, JOEL jdf or nmrium file" loading icon should appear by default when the nmr-wrapper:load event is triggered. On low bandwidth networks, it takes forever to load the spectra (the loading icon is shown after quite some time) this is misleading the user indicating something is wrong with the spectra

https://github.com/NFDI4Chem/nmrium-react-wrapper/assets/4065285/6a5b8d5f-d36a-4c7e-a755-2966ed1ce50a

hamed-musallam commented 1 year ago

@CS76

This is something NMRium has nothing to do about it, it seems that there is time between loading the wrapper and triggering loading the spectra, which I think is from the side of nmrXiv

CS76 commented 11 months ago

Resolving this now with the default message update