Skip to content

Commit

Permalink
lazy load iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Feb 28, 2024
1 parent 5895dcb commit e7e00d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syntax/video.php
Expand Up @@ -140,6 +140,7 @@ public function iframe($data, $element = 'iframe')
'scrolling' => 'no',
'data-domain' => $data['domain'],
'referrerpolicy' => 'no-referrer',
'loading' => 'lazy',
];
if ($this->getConf('extrahard')) {
$attributes = array_merge($attributes, $this->hardenedIframeAttributes());
Expand Down

0 comments on commit e7e00d3

Please sign in to comment.