---
title: Enable Rocket Loader · Cloudflare Speed docs
description: To enable or disable Rocket Loader, use the following instructions.
lastUpdated: 2024-12-16T22:33:26.000Z
source_url:
  html: https://zt-dark-mode-changelog.preview.developers.cloudflare.com/speed/optimization/content/rocket-loader/enable/index.md
  md: https://zt-dark-mode-changelog.preview.developers.cloudflare.com/speed/optimization/content/rocket-loader/enable/
---

To enable or disable Rocket Loader, use the following instructions.

* Dashboard

  To enable or disable **Rocket Loader** in the dashboard:

  1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com).
  2. Select your account and domain.
  3. Go to **Speed** > **Optimization** > **Content Optimization**.
  4. For **Rocket Loader**, switch the toggle to **On**.

  If you have a Content Security Policy (CSP) in place for your domain, you will need to [update your headers](https://developers.cloudflare.com/fundamentals/reference/policies-compliances/content-security-policies/#product-requirements) to support Rocket Loader.

* API

  To enable or disable **Rocket Loader** with the API, send a [`PATCH`](https://developers.cloudflare.com/api/resources/zones/subresources/settings/methods/edit/) request with `rocket_loader` as the setting name in the URI path, and the `value` parameter set to `"on"` or `"off"`.

  If you have a Content Security Policy (CSP) in place for your domain, you will need to [update your headers](https://developers.cloudflare.com/fundamentals/reference/policies-compliances/content-security-policies/#product-requirements) to support Rocket Loader.

Note

To use this feature on specific hostnames - instead of across your entire zone - use a [configuration rule](https://developers.cloudflare.com/rules/configuration-rules/).
