using jQuery UIs little spinner thing, I have a binding handler like
ko.bindingHandlers.Loading = { update: function (element, valueAccessor, allBindingsAccessor) { var value = valueAccessor(), allBindings = allBindingsAccessor(); var valueUnwrapped = ko.utils.unwrapObservable(value); if (valueUnwrapped == true) $(element).showLoading();
and then use it like
<div data-bind="Loading: isLoading" >
therefore, basically, you can bind it to something on your view model that can represent its load (or busy) or not.
source share