GenSpectrum / cov-spectrum-website

A web platform to detect and analyze variants of SARS-CoV-2
https://cov-spectrum.org
GNU General Public License v3.0
60 stars 14 forks source link

Improve load performance by removing whatever requires the single huge 11MB request #987

Closed corneliusroemer closed 1 month ago

corneliusroemer commented 3 months ago

On an 15MB network connection, the page load (world) is extremely slow.

Looking at network tab, there's an obvious culprit, a single 11MB request: https://lapis.cov-spectrum.org/gisaid/v2/sample/aggregated?host=Human&accessKey=9Cb3CqmrFnVjO3XCxQLO6gUnKPd&fields=division%2Cage%2Csex%2Chospitalized%2Cdied

This looks like to me it's only used by the age/sex/hospitalized/died panels on covSpectrum which I've never used, and I think most people don't use it so the easiest fix would be to remove the panel that requires that data.

Also, the request seems to not be cached at all, so it slows every page load

Brave Browser 2024-05-23 14 38 03