Skip to content

Commit b5a488b

Browse files
authored
Lazy-load projects
1 parent 095ad3e commit b5a488b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

includes/EmbedSnap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public static function renderEmbedSnap( $input, $argv, $parser ) {
110110
'width' => $width,
111111
'height' => $height,
112112
'src' => 'https://snap.berkeley.edu/embed?project=' . $project . '&user=' . $user . '&showTitle=' . $taa . '&showAuthor=' . $taa . '&editButton=' . $edit . '&pauseButton=' . $pause . '&noExitWarning',
113+
'loading' => 'lazy',
113114
] );
114115

115116
if ( $hide == 'true' ) {

0 commit comments

Comments
 (0)