Skip to content

Commit

Permalink
Adding loading to the params whitelist
Browse files Browse the repository at this point in the history
So one can use loading="lazy" for images.
  • Loading branch information
Eworm authored Apr 19, 2021
1 parent bf300db commit e4676c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImgixHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Expand Down

0 comments on commit e4676c8

Please sign in to comment.