hlxsites / zemax

AEM Franklin Solution for https://www.zemax.com/
https://main--zemax--hlxsites.hlx.page/
Apache License 2.0
3 stars 1 forks source link

Profile page: header not loaded for 8+ seconds #165

Closed synox closed 1 year ago

synox commented 1 year ago

It seems like something in the profile page blocks the main thread, so therefore the header does not render.

Instead the profile page block should return the control of the main thread as soon as the first things are rendered.

https://github.com/hlxsites/zemax/assets/2250964/2509145d-ebf2-49d9-a2dc-8d04ad5d96ab

cc: @shehjadkhan-ansys

agangam commented 1 year ago

Our current loading process for /pages/profiles loads all user-* first then the header. When the user is not logged in, this causes delay in loading the pages. We should make these load after header is loaded.

image
shehjadkhan-ansys commented 1 year ago

Correct most of the backend API we are interacting with are slow, we need to add loading user experience and lazy load them. I plan to do this once we are done with the core functionality. Can we not do these changes till then. Thank you

synox commented 1 year ago

Also fix for search-results page