Emit loading and idle events