Too Many Videos Causing Lag

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXIAH.com » Suggestions » Too many videos causing Lag
Too many videos causing Lag
First Page 2
Offline
By Aeyela 2012-12-28 19:04:32  
In video intensive threads like the music one it takes nearly half a minute for my browser to load all the videos from YouTube. I know it's a petty request but is it possible for all videos to be spoilered by default? Even on pages with only one or two videos my page takes a few seconds to load. Whilst it's loading my browser locks which is a pain in the arse.

I like browsing threads even if I don't reply or I'm not interested in the topic and I'd prefer to do it without worrying about locking out for half a minute. :\
 
Offline
Posts:
By 2012-12-28 19:07:05
 Undelete | Edit  | Link | 引用 | 返事
 
Post deleted by User.
[+]
 Phoenix.Zohno
Offline
サーバ: Phoenix
Game: FFXI
user: Zono
Posts: 83
By Phoenix.Zohno 2012-12-28 19:09:39  
one of these may help

https://addons.mozilla.org/it/firefox/addon/flashblock/?src=search
https://chrome.google.com/webstore/detail/flashblock/gofhjkjmkpinhpoiabjplobcaignabnl
 Siren.Kalilla
VIP
Offline
サーバ: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2012-12-28 19:10:09  
I have issues with it as well, I just can't use the thread
Offline
By Aeyela 2012-12-28 19:10:16  
I'm using NoScript but blocking YouTube for the sake of browsing a third party (relative to YouTube) website seems like a very ham fisted way of going about it.
 Siren.Kalilla
VIP
Offline
サーバ: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2012-12-28 19:10:48  
They help but then you can't tell what the video is at all.
 Phoenix.Zohno
Offline
サーバ: Phoenix
Game: FFXI
user: Zono
Posts: 83
By Phoenix.Zohno 2012-12-28 19:12:31  
at least can load the page and enable one by one if need to.
still better than freezing the browser :P
Offline
By Aeyela 2012-12-28 19:24:48  
Phoenix.Zohno said: »
at least can load the page and enable one by one if need to.
still better than freezing the browser :P

True, but NoScript replaces them with blank white boxes. Not very useful because I have no way of knowing if it's worth viewing or not... And disabling NoScript on randomly blocked items to see what it is kind of defeats the point of using it at all.

Phoenix.Josiahfk said: »
I think they load spoilered or not so that wouldn't help you. I would avoid the music thread really, if it causes you problems

Spoilers stop images loading until you click on them, I assume videos are the same.
 Cerberus.Eugene
Offline
サーバ: Cerberus
Game: FFXI
user: Eugene
Posts: 6999
By Cerberus.Eugene 2012-12-28 19:28:05  
It sounds more like you're having an issue with memory.
Aeyela said: »
Spoilers stop images loading until you click on them, I assume videos are the same.
I'm 90% sure this is untrue.
 Siren.Kalilla
VIP
Offline
サーバ: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2012-12-28 19:28:54  
idk, I have 4 GB, how much more do I really need :|
 Cerberus.Tikal
Offline
サーバ: Cerberus
Game: FFXI
user: Tikal
Posts: 4945
By Cerberus.Tikal 2012-12-28 19:30:46  
I have 16gb and I still hiccup on threads like that. I don't think the browsers are designed to handle that kind of load; at least not Mozilla.
 Cerberus.Eugene
Offline
サーバ: Cerberus
Game: FFXI
user: Eugene
Posts: 6999
By Cerberus.Eugene 2012-12-28 19:31:20  
For windows 7, 4 gigs is on the lower side unfortunately. Running the os, with a few tabs in your browser, and a few other programs open can cause slowdown.
Offline
By Aeyela 2012-12-28 19:32:44  
I have 8 GB of memory on this computer and run programmes that make Firefox look like Tetris memory wise, memory is not the problem. There's just too much loading at once on one page and the connection can only handle so many at once.
 Cerberus.Eugene
Offline
サーバ: Cerberus
Game: FFXI
user: Eugene
Posts: 6999
By Cerberus.Eugene 2012-12-28 19:33:00  
Cerberus.Tikal said: »
I have 16gb and I still hiccup on threads like that. I don't think the browsers are designed to handle that kind of load; at least not Mozilla.
If you're getting hiccups at 16 then yeah it's bottleneck in the software. 8 should be enough to run most pcs smoothly.
 Cerberus.Eugene
Offline
サーバ: Cerberus
Game: FFXI
user: Eugene
Posts: 6999
By Cerberus.Eugene 2012-12-28 19:33:38  
Aeyela said: »
I have 8 GB of memory on this computer and run programmes that make Firefox look like Tetris memory wise, memory is not the problem. There's just too much loading at once on one page and the connection can only handle so many at once.
It's really not that much being front loaded.
Offline
By Aeyela 2012-12-28 19:33:54  
Cerberus.Eugene said: »
Aeyela said: »
Spoilers stop images loading until you click on them, I assume videos are the same.
I'm 90% sure this is untrue.
 Cerberus.Eugene
Offline
サーバ: Cerberus
Game: FFXI
user: Eugene
Posts: 6999
By Cerberus.Eugene 2012-12-28 19:34:54  
It had already started loading before i clicked the spoiler.

EDIT: Checked again. Cleared cache, reloaded page, was receiving the from upload.wikimedia.org without ever opening the spoiler.
Offline
By Aeyela 2012-12-28 19:35:05  
Cerberus.Eugene said: »
Aeyela said: »
I have 8 GB of memory on this computer and run programmes that make Firefox look like Tetris memory wise, memory is not the problem. There's just too much loading at once on one page and the connection can only handle so many at once.
It's really not that much being front loaded.

There's 44 HTTP requests per YouTube video embedded and it's HTTP requests that are causing the slow down.
Offline
By Aeyela 2012-12-28 19:35:13  
Cerberus.Eugene said: »
It had already started loading before i clicked the spoiler.

Not for me. In either case YouTube does not allow hidden embedding of their videos. Even if the spoiler tag is set to load its contents, providing the contents are hidden with CSS, YouTube will block the embed until it's set to visible.
Offline
By Aeyela 2012-12-28 19:37:37  
Siren.Kalilla said: »
idk, I have 4 GB, how much more do I really need :|

Are you using Firefox?
 Siren.Kalilla
VIP
Offline
サーバ: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2012-12-28 19:39:01  
was until yesterday, I'm using chrome atm.
Offline
By Aeyela 2012-12-28 19:40:12  
Still the same problem with Chrome? I usually switch to Chrome when I know I'm exposing myself to multimedia because from my experience Firefox has never handled it as well.
Offline
By Aeyela 2012-12-28 19:44:57  
I think I might have an inkling what the problem is.

My Firewall and Antivirus is set to screen all incoming connections and is set to screen within applications, not just applications in general. This means it's probably screening every incoming YouTube embed as a separate request.

Problem is disabling it didn't fix it, but it did fix it for Chrome. I will blame Firefox's inferior handling of media.

My suggestion stands, though. It would be much easier to fix this server side than have each individual user with this problem disable or meddle with their firewalls, antivirus, plugins, etc. :-)

(And browsing the internet with them disabled is not something I want to do unless it is absolutely necessary, and it's not.)
 Siren.Kalilla
VIP
Offline
サーバ: Siren
Game: FFXI
user: Kalila
Posts: 14552
By Siren.Kalilla 2012-12-28 19:46:15  
1044
Tab
Music! - FFXIAH.com

Memory                          Virtual memory
Private     Shared     Total   |   Private     Mapped
39312k     52168k    91480k  |   48004k    176084k


2764
Pepper Plugin
Shockwave Flash
538916k     68404k     607320k   |   513012k     216180k


95 seconds from start to finish (loading images in the videos)
 Phoenix.Zohno
Offline
サーバ: Phoenix
Game: FFXI
user: Zono
Posts: 83
By Phoenix.Zohno 2012-12-28 20:40:32  
something can be done but requires a little change server side. shouldn't take more than 10min to change but won't confirm this since it depends on ffxiah own code.

actually ffxiah is using the old youtube code to embed the videos; looks something like this:
<object width="960" height="720"><param name="movie" value="http://www.youtube.com/v/7h7ErtoGEhk?hl=it_IT&version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7h7ErtoGEhk?hl=it_IT&version=3" type="application/x-shockwave-flash" width="960" height="720" allowscriptaccess="always" allowfullscreen="true"></embed></object>

this loads the flash object that everyone should be familiar with.

the new code instead uses iframes:
<iframe width="960" height="720" src="http://www.youtube.com/embed/7h7ErtoGEhk" frameborder="0" allowfullscreen></iframe>

if you try to open the links directly you should get the usual flash object:
- old code link: http://www.youtube.com/v/7h7ErtoGEhk?hl=it_IT&version=3
- new code link: http://www.youtube.com/embed/7h7ErtoGEhk

but youtube has a nice hidden function; html5 player: http://www.youtube.com/html5

the html5 player lets your browser play the video without the need of the flash player. not all the videos have access to this kind of player (techy stuff) and if not available youtube will use the old one.

so what happens if you enable this function? do it and try reloading the links provided above. if you did everything correctly the 2nd link should show the same video with a new kind of player that uses no flash, more clean and lightweight that shows a simple image until the user clicks play.

you could suggest the devs to make this change

sorry for the long post and techy stuff :p
[+]
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2013-01-17 15:22:47  
Phoenix.Zohno said: »
the new code instead uses iframes:
<iframe width="960" height="720" src="http://www.youtube.com/embed/7h7ErtoGEhk" frameborder="0" allowfullscreen></iframe>

if you try to open the links directly you should get the usual flash object:
- old code link: http://www.youtube.com/v/7h7ErtoGEhk?hl=it_IT&version=3
- new code link: http://www.youtube.com/embed/7h7ErtoGEhk

but youtube has a nice hidden function; html5 player: http://www.youtube.com/html5

the html5 player lets your browser play the video without the need of the flash player. not all the videos have access to this kind of player (techy stuff) and if not available youtube will use the old one.

Interesting, I have updated it to use the new embed code. I don't think it will help much with the load times. The iframe still loads similar flash embeds that I use now. Iframes and it's contents do load asynchronously but so do assets like swfs. In any case, the iframe embed is less markup for me deliver. I am going to try to use the following method to lazy load the videos.

https://github.com/TjWallas/YouTube-Lite-Embed

The demo runs nicely. :)
[+]
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2013-01-17 16:47:41  
I'm lazy loading videos with the method I described in the previous post. When you click preview, a placeholder is shown. I will see if I can make that better. The page loads much better for me. I converted page 51 to the new format, compare it to load times on 50.

New:
http://www.ffxiah.com/forum/topic/8236/video-game-music-you-cant-get-sick-of-one-per-post/51/

Old:
http://www.ffxiah.com/forum/topic/8236/video-game-music-you-cant-get-sick-of-one-per-post/50/
[+]
Offline
By Aeyela 2013-01-17 16:49:11  
Page 50 took 36 seconds to load, Page 51 5 seconds. You're awesome!
[+]
 Fenrir.Weakness
Offline
サーバ: Fenrir
Game: FFXI
user: Weakness
Posts: 3344
By Fenrir.Weakness 2013-01-17 16:49:47  
Fenrir.Scragg said: »
I'm lazy loading videos with the method I described in the previous post. When you click preview, a placeholder is shown. I will see if I can make that better. The page loads much better for me. I converted page 51 to the new format, compare to load times on 50.

New:
http://www.ffxiah.com/forum/topic/8236/video-game-music-you-cant-get-sick-of-one-per-post/51/

Old:
http://www.ffxiah.com/forum/topic/8236/video-game-music-you-cant-get-sick-of-one-per-post/50/

Wayyyyyyyyyyyyy faster for me.
 Lakshmi.Aelius
VIP
Offline
サーバ: Lakshmi
Game: FFXI
user: Aelius
By Lakshmi.Aelius 2013-01-17 16:57:58  
The only difference I see is 11 seconds and scrolling lag. >_>
First Page 2
Log in to post.