--- title: TemplateLength description: Identifies large Liquid template files. source_url: html: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/template-length md: >- https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/template-length.md --- ExpandOn this page * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/template-length.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/template-length.md#disabling-this-check) # TemplateLength Deprecated This check only exists in Theme Check `v1.X.X`. Identifies large Liquid template files. To avoid large template files, use snippets to componentize your theme. *** ## Options ```yaml TemplateLength: enabled: true max_length: 600 exclude_schema: true exclude_stylesheet: true exclude_javascript: true ``` | Parameter | Description | | - | - | | enabled | Whether this check is enabled. | | max\_length | The maximum number of lines allowed inside a Liquid template. | | exclude\_schema | Whether the [schema lines](https://shopify.dev/docs/storefronts/themes/architecture/sections/section-schema) in a template should be excluded from the line count. | | exclude\_stylesheet | Whether the [stylesheet lines](https://shopify.dev/docs/storefronts/themes/best-practices/javascript-and-stylesheet-tags#stylesheet) in a template should be excluded from the line count. | | exclude\_javascript | Whether the [JavaScript lines](https://shopify.dev/docs/storefronts/themes/best-practices/javascript-and-stylesheet-tags#javascript) in a template should be excluded from the line count. | *** ## Disabling this check This check is safe to [disable](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration). *** * [Options](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/template-length.md#options) * [Disabling this check](https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/template-length.md#disabling-this-check)