Slug was generated too slow
phuclh opened this issue · comments
LE PHUC H commented
Thank you for your Field, it works very well except the slug was generated really slow. When I finished typing, it takes 3-5 seconds to complete the slug field.
Does it cause by making too many requests for every button I typed?
Thank you!
Robert Dezso commented
Thanks for the feedback!
Each keystroke triggers an API call, but on my production environments these requests take only 100-150 ms.
Of course it depends on the client's bandwidth.
I'll try to optimize it.
LE PHUC H commented
I think it can be better if the API call is triggered by blur event
, not by key up event
.