diff options
author | Jacob Schatz <jschatz1@gmail.com> | 2017-03-16 17:09:20 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz1@gmail.com> | 2017-03-16 17:09:20 +0300 |
commit | a2d1362f9e3c0662c364af4a64800dcb6b2210be (patch) | |
tree | f5f5f083bae7a1624054e9b5028eef5b2959a71e /doc/development/frontend.md | |
parent | 3e0a937c183274440056bb8222715fc13db22f30 (diff) |
Fix up suggestions on content changes.
Diffstat (limited to 'doc/development/frontend.md')
-rw-r--r-- | doc/development/frontend.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/frontend.md b/doc/development/frontend.md index cb402b4d9ac..5e5061285fa 100644 --- a/doc/development/frontend.md +++ b/doc/development/frontend.md @@ -42,8 +42,8 @@ Thus, we must strike a balance between sending requests and the feeling of realt 1. The server will tell you how much to poll by sending `X-Poll-Interval` in the header. Use that as your polling interval. This way it is easy for system administrators to change the polling rate. A `X-Poll-Interval: -1` means don't poll, and this must be implemented. 1. Use a common library for polling. -1. Poll on active tabs only. Use a common library to find out which tab currently has eyes on it. Writing this functionality is trickier than it seems at first (cross browser). It has been solved by Gitter so we can use their code. -1. Use regular polling intervals, do not use backoff polling, as it is not usually effective in the long run. +1. Poll on active tabs only. Use a common library to find out which tab currently has eyes on it. Please use [Focus](https://gitlab.com/andrewn/focus). Specifically [Eyeballs Detector](https://gitlab.com/andrewn/focus/blob/master/lib/eyeballs-detector.js). +1. Use regular polling intervals, do not use backoff polling, or jitter, as the interval will be controlled by the server. 1. The backend code will most likely be using etags. You do not and should not check for status `304 Not Modified`. The browser will transform it for you. ### Vue |