Prevent undesirable page reloads.