Using ChatGPT for extended periods often leads to lag problems; the tab starts freezing, typing becomes unresponsive, and sometimes you even encounter error screens. Many extensions claim to resolve this by hiding older messages via CSS, but that just masks the problem since ChatGPT still loads everything in the background, and the lag eventually returns. My workaround intercepts the data fetch before the app processes it, so only the most recent messages are handled initially. This approach significantly boosts performance—on a chat with 1865 messages, it runs 932 times faster while keeping full message history intact, allowing access to older messages whenever needed. I'm open to any technical questions regarding this work!
5 Answers
That’s a valid point! If ChatGPT implemented this data pagination, it would really help. But since they haven't done it in years, you've created a workaround that tackles the issue at a different level.
While it's true that AI context can be a whole different issue with older messages causing worse performance, simply starting a new chat isn't always practical. Some users may need to reference their full chat history and can't keep opening new conversations.
Indeed, React can be quite demanding for an interface that needs to handle such a heavy load. Ironically, resolving this performance issue necessitates working around React, which is what your extension cleverly does.
A solid fix for handling large amounts of data might typically involve using a virtual list with pagination, only loading what's visible and a bit more when the user scrolls fast. Instead of just hiding elements with CSS, actual data pagination would be the right approach.
It's surprising that loading just a few thousand messages could freeze a modern device. It seems like the app isn't designed well for handling that much data efficiently, considering every message gets treated as an active DOM element.

Related Questions
How to Build a Custom GPT Journalist That Posts Directly to WordPress
Cloudflare Origin SSL Certificate Setup Guide
How To Effectively Monetize A Site With Ads