3 ms·
Can you clarify what you mean by xhr throttling? Implementing something like _.throttle to wrap requests?
by minikomi 10y ago
Can you clarify what you mean by xhr throttling? Implementing something like _.throttle to wrap requests?
- ry_ry 10y agoHopefully not! Surely _.debounce would be more appropriate to avoid locking out your UI - or worse, returning out of date responses - but even then you would potentially want to handle the responses more robustly. Not to mention needing to handle .fetch()s lack of abort if you're not using xhr.
- minikomi 10y agoHow can a throttled vs debounced xhr request "lock out the UI"?