CARA calculator report QR code generation in JS
We currently generate the CARA calculator report on the server-side, generating a PNG/image and returning that inline in the HTML. I estimate that the initial cost of doing this is around 300ms on my machine (it may drop significantly after first use though).
If instead we can do this on the client-side, in Javascript, we will reduce the reponse-time and load on the server, and this gives us some more options in terms of how we present the QR code (e.g. only generate it when doing a print-preview, etc.).
A library such as https://davidshimjs.github.io/qrcodejs/ could be used for this.