why grid display is slow

I have modal show a list of card product With display grid and col and row repeat(5,1fr) I have 50 product And i show 2 container with 2 container with 25 item Its take 4 seconde to show modal I search i see is flex more speed than grid Any suggestions
3 Replies
Jochem
Jochem6mo ago
you'll have to share your code This loads very quickly once the images are cached, and loading the images has nothing to do with grid or flex. The modal also displays instantly: https://codepen.io/jochemm/pen/OJdKQmg so you'll have to share your own code
M@HeR
M@HeR6mo ago
But why if supposed not cached is faster with flex not like grid
Jochem
Jochem6mo ago
I have no idea what that sentence means grid or flex has no influence on the loading of the images