---
title: Enable Rocket Loader · Cloudflare Speed docs
description: To enable or disable Rocket Loader, use the following instructions.
lastUpdated: 2025-10-10T13:43:07.000Z
chatbotDeprioritize: false
source_url:
  html: https://developers.cloudflare.com/speed/optimization/content/rocket-loader/enable/
  md: https://developers.cloudflare.com/speed/optimization/content/rocket-loader/enable/index.md
---

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

* Dashboard

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

  1. In the Cloudflare dashboard, go to the **Speed** > **Settings** page.

     [Go to **Settings**](https://dash.cloudflare.com/?to=/:account/:zone/speed/optimization)

  2. Go to **Content Optimization**.

  3. 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/).
