ChatGPT was using over 1gb of RAM on my browser. I found out why and fixed it.
​
Been dealing with chatgpt freezing in long chats for months. opened devtools one day and watched the memory climb with every single message.
Turns out chatgpt renders every message in your browser at once. a 500 message chat means thousands of live dom elements sitting in memory simultaneously. the longer the chat the worse it gets.
At around 200 messages my browser was using over 1gb of ram just for that one tab.
Once i understood the problem i built a fix. intercepts the conversation data before react renders it and trims it to only the recent messages. tested on a 1865 message chat, went from freezing to instant.
if anyone else has noticed this happening, happy to share what i built.