After you scroll a few pages, it becomes very slow to open a post. This is probably due to having to render too many cards. A potential way to deal with this is to use https://www.npmjs.com/package/react-virtuosohttps://virtuoso.dev/ which only loads the cards in view, not all of them.
NOTE: this should only be a test to see if it improves the speed, if it doesn't imrpove the speed, it can be changed back.
I tested the library using this code and it seemed to work well and do everything we need:
After you scroll a few pages, it becomes very slow to open a post. This is probably due to having to render too many cards. A potential way to deal with this is to use https://www.npmjs.com/package/react-virtuoso https://virtuoso.dev/ which only loads the cards in view, not all of them.
I tested the library using this code and it seemed to work well and do everything we need:
A potential option to test would be
increaseViewportBy
https://virtuoso.dev/virtuoso-api-reference/ maybe it can improve scrolling performance.