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

Excessive Rendering / Poor Performance #166

Closed euanwm closed 1 year ago

euanwm commented 1 year ago

Describe the bug Overall, site performance is poor and seems to stem from repeated re-rendering of the page. Insert a console.log() call into the Home component and it appears to be called 4 times. A few other components were checked and it does seem like the site is rendered repeatedly around 3-4 times per component.

To Reproduce Steps to reproduce the behavior:

  1. Insert a console.log() call in the Home function/component
  2. Load the page
  3. Check browser console in developer tools

Expected behavior Page should load blazingly fast...pls.

Screenshots Screenshot 2023-04-10 at 21 58 50

euanwm commented 1 year ago

@LouisBrunner this is probably tied to #141 in some way but I couldn't figure that issue out either.