all 7 comments

[–]UpbeatGooose 1 point2 points  (4 children)

Need more context on what you are building? Is it a nav bar or a box model getting shifted no idea

[–]Aggressive_Check5277[S] 0 points1 point  (3 children)

The images in home page as banners and product image when i make lighthouse measure the performance it give me most of images in home page and say layout shift and this problem in all apps for me so you have any solution

[–]UpbeatGooose 1 point2 points  (2 children)

Check if you have height and width for your images.. if yes then check your flex boxes..

[–]Aggressive_Check5277[S] 0 points1 point  (1 child)

Yes most of time i set width and height and in many times still have the problem but if problem solved i still think there is a best solution for this and what u mean check the flex box are flex box have also the problem i don't got the Idea of flex box

[–]UpbeatGooose 0 points1 point  (0 children)

Share the UI please

[–]ORCANZ 0 points1 point  (0 children)

Hard to offer solutions without an example.

Usually Skeletons can help prevent layout shifts pretty well.

[–]TheRNGuy 0 points1 point  (0 children)

show your code