Dear @ixxxl,
There is no need to use ready in spBeforeSave() as it's already loaded by this point. But it still takes time to update field value, and the save happens quicker.
One solution is to trigger save on field change, like this:
@Nikita_Kurguzov
Thank you! now it works!
i put spBeforeSave() because there are some browsers Internet Explorer, which without that didn't save State.