Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 792 Bytes

pagination_size.md

File metadata and controls

44 lines (28 loc) · 792 Bytes

Ensure paginate tags are used with performant sizes

Check Details

This check is aimed at keeping response times low.

👎 Examples of incorrect code for this check:

<!-- Using too large of page size -->
{% paginate collection.products by 999 %}

👍 Examples of correct code for this check:

{% paginate collection.products by 12 %}

Use sizes that are integers below the max_size, and above the min_size.

Check Options

The default configuration for this check is the following:

PaginationSize:
  enabled: true
  ignore: []
  min_size: 1
  max_size: 50

When Not To Use It

N/A

Version

This check has been introduced in Theme Check 1.3.0.

Resources