Will my chat cause lag on my page if theres thousands of messages?

Hi, I’m wondering if having thousands of messages rendered will cause lag or performance issues. If so, is there a virtualized message list that can be used, or another solution that would prevent the lag from occuring. Thanks