function hide() {
  clearTimeout(timeout);

  if ($notice) {
    // $notice might not be yet initialized when request
    // succeded BEFORE the notification show()
    $notice.hide();
  }
}
Assigns rpc before/after request handlers showing/hiding "loading" notice.