That introduces a noticeable delay. It's acceptable in some situations but in others less so. Having immediate feedback on button press or text entry makes the UX much more pleasant.
With rest, it would be a much more manually implemented feature. The default would be to just fail silently and potentially drop important data on the next page load.