Skip to content

Commit 9695565

Browse files
committed
chore: added comment for documentation
1 parent 7afde68 commit 9695565

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/loading-attribute-polyfill-with-serviceworker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ function onPrinting() {
131131
* @param {Object} mediaTag image or iframe HTML tag
132132
*/
133133
function prepareElement(mediaTag) {
134+
// Prevent the preparation of the provided HTML tag if the capability is supported by the browser
134135
if (
135136
(mediaTag.tagName?.toLowerCase() === 'img' && capabilities.loading.image) ||
136137
(mediaTag.tagName?.toLowerCase() === 'iframe' &&

0 commit comments

Comments
 (0)