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.
It would be nice to be able to control the preload attribute for audio and video tags in the field formatters.
Comment | File | Size | Author |
---|---|---|---|
#9 | 2150679-preload.patch | 4.87 KB | Dave Reid |
#8 | 2150679-preload.patch | 4.8 KB | Dave Reid |
#3 | file_entity-audio-video-preload-attr-support-2150679-3.patch | 5.07 KB | recrit |
#2 | file_entity-audio-video-preload-attr-support-2150679-2.patch | 1.7 KB | recrit |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #2
recrit CreditAttribution: recrit commentedThe attached patch adds support for the preload attribute to audio and video themes.
Comment #3
recrit CreditAttribution: recrit commentedUpdated patch: adds settings to the audio and video field formatters.
Comment #4
madhaze CreditAttribution: madhaze commentedThanks for the patch, I will be testing this one soon.
Comment #5
jurgenhaasI have tested the patch from #3 which is working just fine.
Comment #6
recrit CreditAttribution: recrit commentedswitch back to the current status.
Comment #7
Dave ReidBecause the possible options are limited, I say let's remove this "validation" since it just adds extra effort when it's not necessary.
Comment #8
Dave ReidSimplified theme versions.
Comment #9
Dave ReidPatch which makes 'unspecified' the default option, as to not change existing implementations. I think this is fairly safe considering that mobile browsers do not pre-fetch by default if the attribute is not defined.
Comment #10
Dave ReidCommitted #9 to 7.x-2.x.