The default preload attribute in videojs.tpl.php is set to preload="auto". This is a enormous performance killer on my site. I would consider this as a bad default. However, setting the attribute to preload="none" has no effect. The XXX MB Video still preloads on page load. Is there a corresponding Javscript setting that's forcing the preload? Where can I turn off the preloading behavior?


Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Can you give the URL where I can see this behavior with preload being none? It may also be browser-dependent, what browser are you using?

ak’s picture

I think I was overhasty, sorry for that. The Video appears in the browsers network as request but, on second sight with 0kb, so it apparently doesn't download any more until you hit the play button. So the behavior is fine. The only consideration would be if this is a good default? But that's no problem with the provided template.

Jorrit’s picture

Version: 7.x-2.0-rc2 » 7.x-2.x-dev
Status: Postponed (maintainer needs more info) » Active

I should make it configurable, thanks for reporting.

Jorrit’s picture

Status: Active » Fixed

This has been added to 7.x-3.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.