Sha256: 0cda6844426005792e5f534d014e3a05b14b9e0f46960d58105f39b5dd47149d

Contents?: true

Size: 792 Bytes

Versions: 25

Compression:

Stored size: 792 Bytes

Contents

# Ensure `paginate` tags are used with performant sizes

## Check Details

This check is aimed at keeping response times low.

:-1: Examples of **incorrect** code for this check:

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

:+1: Examples of **correct** code for this check:

```liquid
{% 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:

```yaml
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

[paginate]: https://shopify.dev/api/liquid/objects/paginate

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
theme-check-1.15.0 docs/checks/pagination_size.md
theme-check-1.14.0 docs/checks/pagination_size.md
theme-check-1.13.0 docs/checks/pagination_size.md
theme-check-1.12.1 docs/checks/pagination_size.md
theme-check-1.12.0 docs/checks/pagination_size.md
theme-check-1.11.0 docs/checks/pagination_size.md
theme-check-1.10.3 docs/checks/pagination_size.md
theme-check-1.10.2 docs/checks/pagination_size.md
theme-check-1.10.1 docs/checks/pagination_size.md
theme-check-1.10.0 docs/checks/pagination_size.md
theme-check-1.9.2 docs/checks/pagination_size.md
theme-check-1.9.1 docs/checks/pagination_size.md
theme-check-1.9.0 docs/checks/pagination_size.md
theme-check-1.8.0 docs/checks/pagination_size.md
theme-check-1.7.2 docs/checks/pagination_size.md
theme-check-1.7.1 docs/checks/pagination_size.md
theme-check-1.7.0 docs/checks/pagination_size.md
theme-check-1.6.2 docs/checks/pagination_size.md
theme-check-1.6.1 docs/checks/pagination_size.md
theme-check-1.6.0 docs/checks/pagination_size.md