From e4676c8e074d35188a5e5cdf4abf4480e6be5a8a Mon Sep 17 00:00:00 2001 From: Wout Mager Date: Mon, 19 Apr 2021 14:28:08 +0200 Subject: [PATCH] Adding loading to the params whitelist So one can use loading="lazy" for images. --- src/ImgixHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImgixHelper.php b/src/ImgixHelper.php index 03d2cc6..301139c 100644 --- a/src/ImgixHelper.php +++ b/src/ImgixHelper.php @@ -6,7 +6,7 @@ class ImgixHelper { - private static $html_params = ['accesskey', 'align', 'alt', 'border', 'class', 'contenteditable', 'contextmenu', 'dir', 'height', 'hidden', 'id', 'lang', 'longdesc', 'sizes', 'style', 'tabindex', 'title', 'usemap', 'width']; + private static $html_params = ['accesskey', 'align', 'alt', 'border', 'class', 'contenteditable', 'contextmenu', 'dir', 'height', 'hidden', 'id', 'lang', 'loading', 'longdesc', 'sizes', 'style', 'tabindex', 'title', 'usemap', 'width']; private static $sorter_exclude = ['path', 'sizes', 'focus', 'default-focus'];