Skip to content

Commit e7e00d3

Browse files
committed
lazy load iframes
1 parent 5895dcb commit e7e00d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

syntax/video.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ public function iframe($data, $element = 'iframe')
140140
'scrolling' => 'no',
141141
'data-domain' => $data['domain'],
142142
'referrerpolicy' => 'no-referrer',
143+
'loading' => 'lazy',
143144
];
144145
if ($this->getConf('extrahard')) {
145146
$attributes = array_merge($attributes, $this->hardenedIframeAttributes());

0 commit comments

Comments
 (0)