polling rates in /submissions
Right now we poll the backend asking how is the processing of pdfs and whether we miss submissions every second.
This has two drawbacks:
-
It takes about a second until the data is rendered.[Fixed by c76a6d4d] - We spam the network with pointless queries when there's nothing happening.
A better strategy would be to poll on load once, then if there is no pdf processing to poll every 10-20 seconds and to increase the polling rate either when we submit a scan or when we detect that there's a PDF being processed.
We'd also reduce the polling rate when the window is in the background.
Edited by Thomas Roos