---
title: "Feature: #108648 - Option to modify src attribute for Vimeo/YouTube"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-108648-1770305451"
source: "Changelog/14.2/Feature-108648-OptionToModifySrcAttributeForVimeoYouTube.rst"
typo3-version: "14.2"
typo3-major: 14
type: "feature"
issue: 108648
forge: "https://forge.typo3.org/issues/108648"
tags: ["Frontend", "ext:core"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Feature: #108648 - Option to modify src attribute for Vimeo/YouTube {#feature-108648-1770305451}

See [forge#108648](https://forge.typo3.org/issues/108648)

## Description {#description}

The new configuration option `srcAttribute` for the `YouTubeRenderer`
and `VimeoRenderer` can be used to modify the previously hard-coded `src`
attribute in the resulting iframe HTML code. This can be useful if
the iframe should not be immediately loaded because of privacy concerns. An
alternative such as `data-src` can be used in the initial
HTML markup.

Example:

```html
<f:media
    file="{youtubeVideo}"
    additionalConfig="{srcAttribute: 'data-src'}"
/>
```

## Impact {#impact}

The `src` attribute for YouTube and Vimeo embeds can now be renamed.
