wire-elements / spotlight

Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.
MIT License
927 stars 72 forks source link

Strange behaviour - slow to open on click #106

Closed JTD420 closed 1 year ago

JTD420 commented 1 year ago

Seems to work fine when using the commands CTRL/CMD + K or CTRL/CMD + / but if I try to open the spotlight when a user presses on a search button in my navigation it can take 2-3+ seconds before it actually appears making it seem like it's completely unresponsive at first.

Any reason why this could be happening?

PhiloNL commented 1 year ago

I would recommend investigating using your dev tools to get some more insights into what is happening. Is it making an XHR request that takes long to load for example?

JTD420 commented 1 year ago

I would recommend investigating using your dev tools to get some more insights into what is happening. Is it making an XHR request that takes long to load for example?

Yes that's correct, it was making an XHR request that was taking a very long time to load. I wasn't able to resolve the problem in the end so I ended up removing the package from my project h owever I may try to reintegrate it at a later stage. For now I'll close this issue.