- Joined
- Sep 15, 2015
The constant chat crashes in Firefox are really starting to bug me, and I'd like to try my hand at fixing the problem myself if I can. Javascript isn't my specialty, but I have noticed a pattern of performance degradation that I think might be pretty simple to solve.
The problem seems to arise (at least in Firefox), when the chat history gets too big. However, if you're not viewing the chat page actively (it's in another tab but you're not viewing it), and then click to the tab after the history has grown, it shoots Firefox's CPU usage to 100% and locks up the browser completely. This problem can be circumvented by reloading the tab before clicking to it (this clears the long history backlog), but that's annoying and I'd like to find a solution I can.
Since the problem arises when the history is large, my hunch is the problem has something to do with the data structure the chat uses to store the history internally. Is the chat script open source? I'd love to poke around it and try to find a fix.
The problem seems to arise (at least in Firefox), when the chat history gets too big. However, if you're not viewing the chat page actively (it's in another tab but you're not viewing it), and then click to the tab after the history has grown, it shoots Firefox's CPU usage to 100% and locks up the browser completely. This problem can be circumvented by reloading the tab before clicking to it (this clears the long history backlog), but that's annoying and I'd like to find a solution I can.
Since the problem arises when the history is large, my hunch is the problem has something to do with the data structure the chat uses to store the history internally. Is the chat script open source? I'd love to poke around it and try to find a fix.