OpenWeightlifting icon indicating copy to clipboard operation
OpenWeightlifting copied to clipboard

Decrease render time on initial load

Open euanwm opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. On an initial load of the main landing page, a large amount of time is spent loading the logo within the header bar.

Describe the solution you'd like Implement lazy loading for the OWL logo so that it scores higher on PageSpeed Insights

Additional context Screenshot from 2023-10-01 09-55-12 image

euanwm avatar Oct 01 '23 09:10 euanwm

Hey, can I work on this?

inomag avatar Oct 02 '23 16:10 inomag

@inomag sure

euanwm avatar Oct 02 '23 16:10 euanwm

Hi, @euanwm Can you check this. I am not able to run the project on my system to check the update LCP score. https://github.com/euanwm/OpenWeightlifting/pull/251

inomag avatar Oct 02 '23 18:10 inomag

Hey @inomag, not sure if you're still working on this but given that the image being loaded is using next/image I would recommend simply adding the priority attribute to the Image tag (see docs here). We don't want images above the fold being lazy loaded at all.

if you're not still working on it don't worry, I can throw up a PR for this later today

rsbrowne avatar Nov 13 '23 13:11 rsbrowne

@rsbrowne - It's all yours buddyyyy.

euanwm avatar Nov 13 '23 15:11 euanwm

Linked to #388

Closing

euanwm avatar Jul 31 '24 08:07 euanwm