themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.3k stars 710 forks source link

Check if all instances are initialised #809

Open Lexachoc opened 4 months ago

Lexachoc commented 4 months ago

Is your feature request related to a problem? Please describe. When I open/refresh a page and click a button to open a modal, sometimes the modal doesn't open if I click the button too quickly. But after a few seconds, the modal can be opened by clicking again.

Describe the solution you'd like So I want to add a skeleton or spinner overlay to the page and hide it as long as all flowbite instances are finished.

I would like to have a function e.g., isFlowbiteInstances or shortly isFlowbite to check if all flowbite instances are finished and ready to use. Or other ways to check the status of the initialisation (if better).

Thank you!