euanwm / OpenWeightlifting

Repository that is deployed for the OpenWeightlifting site
https://www.openweightlifting.org
BSD 3-Clause "New" or "Revised" License
33 stars 21 forks source link

Poor loading speed on events page #377

Closed euanwm closed 2 months ago

euanwm commented 3 months ago

Describe the bug Loading speed when selecting an event is slow. It appears that it makes 2 API calls, with the first being an empty GET which is not required.

To Reproduce Steps to reproduce the behavior:

  1. Open dev consols
  2. Visit https://www.openweightlifting.org/events/show?fed=UK&id=714.csv
  3. Check the API calls made to api.openweightlifting.org

Expected behavior Single API call for the page request