The Ultimate Site of Worms Armageddon

All About TUS => TUS Discussion => Topic started by: avirex on February 11, 2017, 09:15 AM

Title: Instant message
Post by: avirex on February 11, 2017, 09:15 AM
I think I have mentioned this before...

Not sure if anyone else had the same problem, but when I come to TUS, before the web page completely loads, I usually have already clicked "forums". So if someone had sent me an IM while I was not @ TUS then it pops up right before the webpage switches to forums.

I think the last time I brought this issue up, I was told just to go to the shout box history, and you're the members name... but the problem is this all happens so quick.

Maybe in the shout box history there can be a list of the last 3-5 members that have messaged you, or you have messaged?

Of course, if I'm the only one who had this problem, then it's not worth fixing... but I find it pretty annoying, and there is really no way to find out who sent the message :(

PS: who ever sent me a message 2 or 3 days ago, I did not read it, msg me again :p
Title: Re: Instant message
Post by: Sbaffo on February 11, 2017, 09:24 AM
Actually i have the same problem, IMs are the last thing the site loads and when you click on a new page they suddendly pop up and disappear
Title: Re: Instant message
Post by: Korydex on February 11, 2017, 09:58 AM
+1, i had the same problem b4
Title: Re: Instant message
Post by: XanKriegor on February 11, 2017, 12:33 PM
+1 too.

 I would like to mention also what i have said in shoutbox itself eariler - each tab with TUS page have its own copy of shoutbox who acts on its own, so each tab drains a little of your, not always wide, inet pipe. Unoptimal stuff.

(https://img2.picload.org/image/rdiailai/20161104_120054_networx.png)

Here is my speed-o-meter, i has 15 tabs with TUS pages, and was closing them one by one, with some interval.
Title: Re: Instant message
Post by: Sensei on February 11, 2017, 12:45 PM
+1

Btw, chat history wouldn't be a bad thing too.
Title: Re: Instant message
Post by: TheKomodo on February 11, 2017, 12:54 PM
+1 for Xan, just for being so clever :)
Title: Re: Instant message
Post by: MonkeyIsland on February 12, 2017, 08:07 AM
Look at the top of your shoutbox. There's a new link called "Recent Pop-ups".
Title: Re: Instant message
Post by: avirex on February 12, 2017, 08:27 AM
Wow. That was a quick fix. It's perfect.

Thank you.
Title: Re: Instant message
Post by: XanKriegor on February 12, 2017, 08:46 AM
Thanks!
Title: Re: Instant message
Post by: MonkeyIsland on February 12, 2017, 08:58 AM
@XanKriegor,

Please do that test again. (Make sure you refresh TUS before doing so)
Title: Re: Instant message
Post by: STRGRN on February 12, 2017, 09:06 AM
+1 too.

 I would like to mention also what i have said in shoutbox itself eariler - each tab with TUS page have its own copy of shoutbox who acts on its own, so each tab drains a little of your, not always wide, inet pipe. Unoptimal stuff.

(https://img2.picload.org/image/rdiailai/20161104_120054_networx.png)

Here is my speed-o-meter, i has 15 tabs with TUS pages, and was closing them one by one, with some interval.

wtf are you seriously using windows xp in 2017? real men use windows 98
Title: Re: Instant message
Post by: spleen17 on February 12, 2017, 09:57 AM
Do you often feel the need to have 15 tus tabs open Xan?
Title: Re: Instant message
Post by: XanKriegor on February 12, 2017, 11:50 AM
Do you often feel the need to have 15 tus tabs open Xan?

Yes i do. I usually getting in, open all bumped treads and read them one by one.

Now the graph looks like this:

[attachment=1]

TUS started to load CPU:

[attachment=2]
Title: Re: Instant message
Post by: Korydex on February 12, 2017, 12:13 PM
Look at the top of your shoutbox. There's a new link called "Recent Pop-ups".
is it supposed to be shown when you're not logged in? because it is shown
Title: Re: Instant message
Post by: MonkeyIsland on February 12, 2017, 01:28 PM
@korydex, thanks fixed.

@XanKriegor,
Inactive TUS tabs now disable the shoutbox.
Title: Re: Instant message
Post by: Triad on February 12, 2017, 02:05 PM
This new recent pop ups thing is awesome. :) Thanks MI.
Title: Re: Instant message
Post by: XanKriegor on February 12, 2017, 02:57 PM
I have disabled IM system and opened 10 tabs, everything works as good as before, no CPU load after all tabs are fully downloaded.

Anyone have similar problem?
Title: Re: Instant message
Post by: MonkeyIsland on February 12, 2017, 03:54 PM
The CPU eating part could be related to all those GIFs.
Title: Re: Instant message
Post by: Sensei on February 12, 2017, 04:31 PM
When I was forced to use mobile data as modem, disabling images to load on chrome saved me plenty of MB's. Especially on TUS.

I changed it in advanced settings of browser, but just found out there's actually app to do this by a single click.
Here it is for Chrome/Opera:

http://singleclickapps.com/images-on-off/
Title: Re: Instant message
Post by: Tomi on February 12, 2017, 04:43 PM
By te way MI, would it be complicated to add a jquery lazy load plugin to lazy load imgs in shoutbox? Some libraries also support loading on click. However i don't know if people would like it, but yesterday it required about 500mb to load 10 tus pages, because of big gifs ^^
Title: Re: Instant message
Post by: MonkeyIsland on February 12, 2017, 08:35 PM
500 MB? :o
Title: Re: Instant message
Post by: Tomi on February 12, 2017, 09:21 PM
I made this screenshot yesterday. I was testing something when I accidentally realized why TUS site is loading slowly. If you check the network usage there is a 40Mb gif, a 4.5Mb gif (with png extension :D) and a 1.2Mb gif. So the total network usage was almost 50Mb only to load the main page.

You can verify it if you open the history page of the shoutbox :) (for the ones who interested: ctrl+shift+i in chrome and choose network tab before loading the page.. but carefully, if you have limited internet connection! ;))
Title: Re: Instant message
Post by: MonkeyIsland on February 13, 2017, 07:31 AM
Ok I added another feature. In your profile Look and Layout page, there's a new option added "Do not show shoutbox images by default. (Activate by click)". If you enable it, shoutbox won't show/load any images. Instead it shows [Click to view image].

Kinda think this option should be enabled by default. But let's see :)
Title: Re: Instant message
Post by: TheKomodo on February 13, 2017, 08:01 AM
500mb for 10 tabs, damn!

Gonna have to be careful on my phone from now on.

Also, recent pop-ups, great job MI :)
Title: Re: Instant message
Post by: XanKriegor on February 13, 2017, 11:01 AM
Yes, it helped a lot, thanks!