Skip to content
This repository

Make client ajax code more resilient to latency and failure #240

Open
cespare opened this Issue · 1 comment

2 participants

Caleb Spare Phil Crosby
Caleb Spare
Collaborator
cespare commented

We should scrub all of our ajax calls to make them better handle high latency and failure. When tackling this task, feel free to open smaller tasks to track the actual work required.

Here are some examples of improvements:

  • While waiting on a comment submission, we should gray out the comment box (or otherwise indicate that something is happening) and not allow the user to interact with it. If the submission fails we need to indicate that and allow the user to resubmit.
  • Similarly for other kinds of data submissions
  • If our background ajax requests fail (maybe more than once), we should indicate on the page somehow that there may be a connection problem.
  • error handlers for all the ajax requests.
  • For most types of requests, disallow quickly resending until the original has returned or timed out (see #225, for example).
Phil Crosby
Collaborator
philc commented

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.