Abnormal layout shift and high LCP even for a basic site? #379
-
Just found out the library, great one for fast pace development with Tailwind! So I decided to try it out for a side project. I noticed the component styles seems to be loaded late, so it creates a large layout shift. Besides, for some reasons the Largest Contentful Paint in Lighthouse mobile test seems to be broken for the library. The test produces a very unrealistic measurement (>15s LCP). I suppose this has something to do with styles or JS being loaded? I tried out with different browsers, OS, and the result is still the same. Any idea? Please watch the video to see what I mean. 2023-11-03.19-21-51.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Your issue is FOUC and you can read about it here and try the workaround I have provided: primefaces/primereact#5188 |
Beta Was this translation helpful? Give feedback.
-
It doesn't look like you followed the Tailwind instructions? https://primereact.org/tailwind/ |
Beta Was this translation helpful? Give feedback.
It doesn't look like you followed the Tailwind instructions? https://primereact.org/tailwind/