AssetSizeCSSStylesheetTag

Version 1.0.0+

Prevents themes and theme app extensions from using CSS files larger than the configured threshold_in_bytes. Unlike AssetSizeCSS, this check identifies large CSS files referenced using the stylesheet_tag filter.

Limiting the size of CSS files helps to improve the performance of your theme.

Example

In the following example, the size of assets/theme.css is checked to make sure that it doesn't exceed the specified threshold_in_bytes:

Options

The following example contains the default configuration for this check:

Parameter Description
enabled Whether this check is enabled.
threshold_in_bytes The maximum allowed compressed size, in bytes, for a single CSS file. This includes the theme and remote stylesheets.

Disabling this check

This check is disabled by by default.