Skip to content

Commit

Permalink
feat: adds data-skip-lazy attr for skipping lazyload
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Jan 14, 2020
1 parent 97ef843 commit 8726127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/app_replacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static function possible_lazyload_flags() {
return self::$ignore_lazyload_strings;
}

self::$possible_src_attributes = apply_filters( 'optml_possible_lazyload_flags', [ 'skip-lazy' ] );
self::$possible_src_attributes = apply_filters( 'optml_possible_lazyload_flags', [ 'skip-lazy', 'data-skip-lazy' ] );

return array_merge( self::$possible_src_attributes, [ '<noscript' ] );
}
Expand Down

0 comments on commit 8726127

Please sign in to comment.