---
title: MissingEnableComment
description: >-
  Checks for theme-check-disable comments without corresponding
  theme-check-enable comments.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-enable-comment
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/missing-enable-comment.md
api_name: liquid
---

# Missing​Enable​Comment

**Deprecated:**

This check only exists in Theme Check `v1.X.X`.

Makes sure that when `theme-check-disable` is used in the middle of a template, the corresponding `theme-check-enable` comment is also present.

***

## Examples

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

### ✗ Fail

```liquid
<!doctype html>
<html>
  <head>
    {% # theme-check-disable ParserBlockingJavaScript %}
    <script src="https://cdnjs.com/jquery.min.js"></script>
  </head>
  <body>
    <!-- ... -->
  </body>
</html>
```

### ✓ Pass

```liquid
<!doctype html>
<html>
  <head>
    {% # theme-check-disable ParserBlockingJavaScript %}
    <script src="https://cdnjs.com/jquery.min.js"></script>
    {% # theme-check-enable ParserBlockingJavaScript %}
  </head>
  <body>
    <!-- ... -->
  </body>
</html>
```

***

## Disabling this check

Disabling this check isn't recommended because Theme Check might not run on large sections of your code.

***
