From 4d315e009dc8850d6cc2dc1fff87016e3f9184e7 Mon Sep 17 00:00:00 2001 From: nic <139033898+dicnunz@users.noreply.github.com> Date: Wed, 20 May 2026 14:37:48 -0400 Subject: [PATCH] Enable SingleFile deferred image loading by default --- abx_plugins/plugins/singlefile/config.json | 3 ++- .../singlefile/tests/test_singlefile_config.py | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 abx_plugins/plugins/singlefile/tests/test_singlefile_config.py 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"] + )