Current time: 10-16-2019, 02:04 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Huge video - Slow loading time
11-03-2011, 09:32 PM
Post: #1
Huge video - Slow loading time
Dear All,

I have a website that although it is pretty light & optimized, it contains a video that it loads/plays straight ahead.

As you can understand, based on webpagetest, its document complete time is 3 seconds but document fully loaded time is 21 seconds.

What can i do to optimize document fully loaded time as well?
Can i do anything or as long as it loads then the time will be dependent on the file size of the video?

Thanks in advance.
Steve
Find all posts by this user
Quote this message in a reply
11-03-2011, 10:39 PM
Post: #2
RE: Huge video - Slow loading time
I guess the best solution is to add an image & to load the video when i click it. What do you think?
Any chance for a faster loading without adding an image?

Thanks in advance.
Steve
Find all posts by this user
Quote this message in a reply
11-03-2011, 11:45 PM
Post: #3
RE: Huge video - Slow loading time
I'd strongly encourage not setting the video to autoplay. Most players have an option for a static image that they can display until the user clicks to play (you don't need to manually load your own image and trigger the playback, it is supported by most players out of the box). My suggestion isn't just because of performance reasons but for user experience. If a user loads your page in a background tab then the video will start playing before they even actually look at the page. Users on metered connections will also have to pay for the bandwidth of the video as well.

If you do need to keep the video as an autoplay video, you can look to see if your player supports buffering only part of the video and using byte ranges. That way it will only download the first part of the video and it will download more as needed.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-03-2011, 11:59 PM
Post: #4
RE: Huge video - Slow loading time
Dear Patrick,

Thank you so much for your prompt response.

I absolutely agree with all of your comments.

You rock.

Thanks once again.

Regards,
Steve
Find all posts by this user
Quote this message in a reply
11-04-2011, 07:53 AM
Post: #5
RE: Huge video - Slow loading time
If it's absolutely necessary to load the video immediately (e.g. to get attention for the video), then load it after the Load Event.

Using jQuery on our website you can see on http://www.finanznachrichten.de in the footer that we load e.g. the ticker in the navigation area after the load event:
---
<script type="text/javascript">/*<![CDATA[*/$(window).load(function(){$('#fn-mc').load('/h/hauptmenue');$('#sb-adhoc-mrq-sp').load('/h/adhocticker');});/* ]]> */</script>
---

This is relatively easy to implement.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-04-2011, 08:35 AM
Post: #6
RE: Huge video - Slow loading time
Thanks Markus.

Smart idea.

Regards,
Steve
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)