|
|
@@ -29,6 +29,8 @@ this.singlefile.lib.hooks.content.frames = this.singlefile.lib.hooks.content.fra
|
|
|
const LOAD_DEFERRED_IMAGES_END_EVENT = "single-file-load-deferred-images-end";
|
|
|
const BLOCK_COOKIES_START_EVENT = "single-file-block-cookies-start";
|
|
|
const BLOCK_COOKIES_END_EVENT = "single-file-block-cookies-end";
|
|
|
+ const BLOCK_STORAGE_START_EVENT = "single-file-block-storage-start";
|
|
|
+ const BLOCK_STORAGE_END_EVENT = "single-file-block-storage-end";
|
|
|
const LOAD_IMAGE_EVENT = "single-file-load-image";
|
|
|
const IMAGE_LOADED_EVENT = "single-file-image-loaded";
|
|
|
const NEW_FONT_FACE_EVENT = "single-file-new-font-face";
|
|
|
@@ -53,12 +55,18 @@ this.singlefile.lib.hooks.content.frames = this.singlefile.lib.hooks.content.fra
|
|
|
if (options.loadDeferredImagesBlockCookies) {
|
|
|
dispatchEvent(new CustomEvent(BLOCK_COOKIES_START_EVENT));
|
|
|
}
|
|
|
+ if (options.loadDeferredImagesBlockStorage) {
|
|
|
+ dispatchEvent(new CustomEvent(BLOCK_STORAGE_START_EVENT));
|
|
|
+ }
|
|
|
dispatchEvent(new CustomEvent(LOAD_DEFERRED_IMAGES_START_EVENT));
|
|
|
},
|
|
|
loadDeferredImagesEnd: options => {
|
|
|
if (options.loadDeferredImagesBlockCookies) {
|
|
|
dispatchEvent(new CustomEvent(BLOCK_COOKIES_END_EVENT));
|
|
|
}
|
|
|
+ if (options.loadDeferredImagesBlockStorage) {
|
|
|
+ dispatchEvent(new CustomEvent(BLOCK_STORAGE_END_EVENT));
|
|
|
+ }
|
|
|
dispatchEvent(new CustomEvent(LOAD_DEFERRED_IMAGES_END_EVENT));
|
|
|
},
|
|
|
LOAD_IMAGE_EVENT,
|