Skip to content

Commit 39796f9

Browse files
ENGCOM-8494: Add event listeners passive for fotorama lib improves lighthouse metrics #31080
2 parents 8fa7ea3 + 2f5b57a commit 39796f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/web/fotorama/fotorama.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ fotoramaVersion = '4.6.4';
11401140

11411141
function addEvent(el, e, fn, bool) {
11421142
if (!e) return;
1143-
el.addEventListener ? el.addEventListener(e, fn, !!bool) : el.attachEvent('on' + e, fn);
1143+
el.addEventListener ? el.addEventListener(e, fn, {passive: true}) : el.attachEvent('on' + e, fn);
11441144
}
11451145

11461146
/**

0 commit comments

Comments
 (0)