(This is posted in miscellaneous, as I don't know where else to put it).
I have been benchmarking a bit, since the Profile Stats page is unbelieavbly slow on my machine. I took a much faster machine to not have the bottleneck being the CPU of my somewhat aging laptop. I thought that maxcdn was the culprit, as the message I usually get is "Waiting for maxcdn.project-gc.com", but that turned out not to be the case once benchmarked on a more beefy machine. Both response time and throughput is fine with the maxcdn. I did, however, stumble upon another quite odd thing that brings about the following question:
How come that the Profile Stats are loading the full version pictures of the souvenirs earned ?
The full size of my profile stats page is a little over 20MB when loaded without anything cached in advance, the vast bulk of which is served from souvenirs.geocaching.com (17,8MB). The vast bulk of that are the full-size (300x400 px or so) images that belong to the individual souvenirs. They appear inside elements hidden by CSS. Clicking the individual souvenirs on the profile page appears to do nothing.
I realise that
- The images are cachable, so that reloading the page will result in a 304 on all images, thus reducing the total size of the page that needs to be loaded from souvenirs.geocaching.com to a mere 84KB
- The images are served from souvenirs.geocaching.com so that does not put extra load on project-gc.com or maxcdn.project-gc.com
That does not, however, explain the need to load them in the first place - or why souvenirs.geocaching.com should be made to serve the client (which should load and cache) some 10+MB of data that does not appear to be used for anything. Is there a reason that these elements are loaded, or have they been forgotten ?
To be clear: We are not talking about the thumbnail versions of the souvenirs that are displayed in the Souvenirs tab.