We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
blockAlternativeImages
1 parent 2420f1a commit bd82ec5Copy full SHA for bd82ec5
core/lib/processor-helper-common.js
@@ -220,7 +220,7 @@ class ProcessorHelperCommon {
220
if (options.saveOriginalURLs && !isDataURL(originSrcset)) {
221
resourceElement.setAttribute("data-sf-original-srcset", originSrcset);
222
}
223
- if (!options.blockImages) {
+ if (!options.blockImages && !options.blockAlternativeImages) {
224
const srcsetValues = await Promise.all(srcset.map(async srcsetValue => {
225
let resourceURL = normalizeURL(srcsetValue.url);
226
if (!testIgnoredPath(resourceURL)) {
0 commit comments