diff --git a/abx_plugins/plugins/singlefile/config.json b/abx_plugins/plugins/singlefile/config.json index 5a3581a4..604ef4c5 100644 --- a/abx_plugins/plugins/singlefile/config.json +++ b/abx_plugins/plugins/singlefile/config.json @@ -132,7 +132,8 @@ "type": "string" }, "default": [ - "--browser-headless" + "--browser-headless", + "--load-deferred-images-dispatch-scroll-event" ], "x-aliases": [ "SINGLEFILE_DEFAULT_ARGS" diff --git a/abx_plugins/plugins/singlefile/tests/test_singlefile_config.py b/abx_plugins/plugins/singlefile/tests/test_singlefile_config.py new file mode 100644 index 00000000..cf808a39 --- /dev/null +++ b/abx_plugins/plugins/singlefile/tests/test_singlefile_config.py @@ -0,0 +1,13 @@ +import json +from pathlib import Path + + +PLUGIN_DIR = Path(__file__).resolve().parents[1] + + +def test_singlefile_args_load_deferred_images_by_default(): + config = json.loads((PLUGIN_DIR / "config.json").read_text()) + + assert "--load-deferred-images-dispatch-scroll-event" in ( + config["properties"]["SINGLEFILE_ARGS"]["default"] + )