We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7afde68 commit 9695565Copy full SHA for 9695565
1 file changed
src/loading-attribute-polyfill-with-serviceworker.js
@@ -131,6 +131,7 @@ function onPrinting() {
131
* @param {Object} mediaTag image or iframe HTML tag
132
*/
133
function prepareElement(mediaTag) {
134
+ // Prevent the preparation of the provided HTML tag if the capability is supported by the browser
135
if (
136
(mediaTag.tagName?.toLowerCase() === 'img' && capabilities.loading.image) ||
137
(mediaTag.tagName?.toLowerCase() === 'iframe' &&
0 commit comments