|
@@ -114,7 +114,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
parallel: [
|
|
parallel: [
|
|
|
{ action: "processStylesheets" },
|
|
{ action: "processStylesheets" },
|
|
|
{ action: "processStyleAttributes" },
|
|
{ action: "processStyleAttributes" },
|
|
|
- { action: "pageResources" },
|
|
|
|
|
|
|
+ { action: "processPageResources" },
|
|
|
{ option: "!removeScripts", action: "processScripts" }
|
|
{ option: "!removeScripts", action: "processScripts" }
|
|
|
]
|
|
]
|
|
|
}, {
|
|
}, {
|
|
@@ -657,7 +657,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- async pageResources() {
|
|
|
|
|
|
|
+ async processPageResources() {
|
|
|
const resourcePromises = [
|
|
const resourcePromises = [
|
|
|
DomProcessorHelper.processAttribute(this.doc, this.doc.querySelectorAll("link[href][rel*=\"icon\"]"), "href", PREFIX_DATA_URI_IMAGE, this.baseURI, this.options, this.batchRequest, false, true),
|
|
DomProcessorHelper.processAttribute(this.doc, this.doc.querySelectorAll("link[href][rel*=\"icon\"]"), "href", PREFIX_DATA_URI_IMAGE, this.baseURI, this.options, this.batchRequest, false, true),
|
|
|
DomProcessorHelper.processAttribute(this.doc, this.doc.querySelectorAll("object[type=\"image/svg+xml\"], object[type=\"image/svg-xml\"]"), "data", PREFIX_DATA_URI_IMAGE_SVG, this.baseURI, this.options, this.batchRequest),
|
|
DomProcessorHelper.processAttribute(this.doc, this.doc.querySelectorAll("object[type=\"image/svg+xml\"], object[type=\"image/svg-xml\"]"), "data", PREFIX_DATA_URI_IMAGE_SVG, this.baseURI, this.options, this.batchRequest),
|