Loading indicator on record change
Is there a way to show a loading view when I load a diffrent id.
Like when i change from: https://demo.filamentphp.com/shop/orders/1/edit to https://demo.filamentphp.com/shop/orders/2/edit and it takes more than 1 sec I want to show a "Please wait while data is loading" and a spinner.
Thank you in advance!
2 Replies
I'd rather check why your app takes more than 1 second to load.
Do you have OPCache disabled?
Btw: I think people are used to more loading time than 1sec.
You could probably inject some overlay and spinner on pageunload via JS
Thank you for a quick response π
I'm using Laravel vapor so I think OPCache should be ok.
Checked my code to reduce the loading time. Found a few places to improve however I want a loading spinner for the user experience on slower loads.