Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comments
Comment #1
Jorrit CreditAttribution: Jorrit commentedCan 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?
Comment #2
ak CreditAttribution: ak commentedI 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.
Comment #3
Jorrit CreditAttribution: Jorrit commentedI should make it configurable, thanks for reporting.
Comment #4
Jorrit CreditAttribution: Jorrit commentedThis has been added to 7.x-3.x.