diaspora / jsxc

Real-time chat app
www.jsxc.org
Other
22 stars 16 forks source link

Ajax connection makes page freeze for 2-3 seconds #88

Closed ghost closed 9 years ago

ghost commented 9 years ago

I'm opening a seperated issue on this because it's more annoying than I first thought. It's really a big problem. JSXC seem to consume more resources now than before. :/

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

zauberstuhl commented 9 years ago

Can someone confirm that? I have no problems on my Thinkpad Edge 11

ghost commented 9 years ago

I may come from the server though, the JS script freezes until the server answers. As sechat.org is smaller than diaspora-fr.org. So it may answer more quickly.

ghost commented 9 years ago

I've uploaded you a video here so you can see how it's like. On the video, the page freezes for about 3 seconds but it's sometimes 4 or 6.

Flaburgan commented 9 years ago

@Zauberstuhl you have an account on d-fr right? You can use this invitation link if you need: https://diaspora-fr.org/i/d24d8737f3a9

zauberstuhl commented 9 years ago

Nope I have also no problems with my diaspora-fr account. how many contacts do you have in the chat? If you add all your contacts (1k+) at once I am pretty sure your browser needs some time rendering it (plus the double contact bug).

Flaburgan commented 9 years ago

something like ~200 in my 3 aspects where the chat is activated.

ghost commented 9 years ago

I have ~50 contacts which I don't think this is a big amount. That's why I'm concerned on this. It happens on pretty much each page loading, this is a big ergonomic issue to me.

Flaburgan commented 9 years ago

I just deactivated temporary the chat on d-fr and I confirm that the page is not freezing anymore, even if I still find it pretty slown to load. Damn...

ghost commented 9 years ago

It's only on connection. We have to find a way to lighten the connection function.

ghostnegotiator commented 9 years ago

@jhass his reference is valid, I had this problem in the past as well. Clearing the pod its cache and your own browser temporary solves it.

@Zauberstuhl this issue is true my hardware specs:

My issue's: Whole browser turns slow when it is loaded for longer period of times. It fills my RAM up to 6 to 8 GB of memory and eventually FireFox crashes. Crashes happens when having FireFox loaded for extensive amount of time and mostly in combination of HTML5 Web Players for example at crunchyroll.com