inertiaui / modal

With Inertia Modal, you can easily open any route in a Modal or Slideover without having to change anything about your existing routes or controllers.
https://inertiaui.com/inertia-modal/docs
MIT License
95 stars 9 forks source link

Async loading of modal content #23

Closed ivan-plotnikov closed 1 month ago

ivan-plotnikov commented 1 month ago

Now when a modal window is called, a request is made to the server and only then is the modal rendered. Depending on the speed of the internet connection, this can take from a few milliseconds to a few seconds.

I think it would be useful to have a customisable mode where the modal window opens immediately after the call, and the content is loaded afterwards (a preloader or skeleton could be used for the loading time).

This would be especially useful for users from countries with slow internet.

pascalbaljet commented 1 month ago

Yeah, that would be interesting! For now, you can use the loading state on the ModalLink component. I will convert this to a discussion to keep the issues clean.