DeprecateBgsizes

Version 1.0.0+

Discourages use of the lazysizes bgset extension instead of the CSS image-set attribute to load responsive background images.

You should avoid using third-party libraries over native browser features to avoid large JavaScript bundle sizes and slow load times. Learn more about theme performance.

Examples

The following examples contain code snippets that either fail or pass this check.

✗ Fail

The following example includes a lazyload class and a data-bgset attribute:

✓ Pass

The following example uses the CSS image-set() attribute instead of data-bgset:

Disabling this check

This check is safe to disable.