-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/12/15 01:07, Spencer wrote:
Hi,
teor: Do David's visualizations already use JavaScript? We could make (another) part of the metrics site use JavaScript.
Can the data be processed on the host server and sent to the client JS-free?
We briefly discussed making a JavaScript-free Globe a while ago by using Node.js. I'm not sure whether this would also work for Metrics. It may depend on how interactive graphs are supposed to be.
But before we look more into this: do we really have no JavaScript at all? The High Security level in Tor Browser says that JavaScript performance optimizations are disabled and that JavaScript is disabled on all non-HTTPS sites, but in theory, Metrics runs on HTTPS, so the bubble graphs should work in Tor Browser. A possible deal breaker might be that we're fetching data from Onionoo for the bubble graphs. Would we be able to put JavaScript on Metrics if we load data from https://metrics.torproject.org/ instead of https://onionoo.torproject.org/?
Or are we waiting to choose a language before doing any new work?
What are the options?
I think the main option is to keep rendering graphs on the server. Right now, we're using R/ggplot2 for that, but we could switch to server-side JavaScript or really anything else. The main downside is lack of real interactivity.
Thanks for the feedback!
All the best, Karsten