- API Shield Endpoint Management
- API Shield Settings
- ASN Intelligence
- Access Bookmark applications (Deprecated)
- Access applications
- Access authentication logs
- Access groups
- Access identity providers
- Access key configuration
- Access mTLS authentication
- Access policies
- Access service tokens
- Access short-lived certificate CAs
- Account Billing Profile
- Account Load Balancer Monitors
- Account Load Balancer Pools
- Account Load Balancer Search
- Account Members
- Account Railguns
- Account Roles
- Account Rulesets
- List account rulesets
- Create an account ruleset
- Get an account entry point ruleset
- Update an account entry point ruleset
- List an account entry point ruleset's versions
- Get an account entry point ruleset version
- Delete an account ruleset
- Get an account ruleset
- Update an account ruleset
- Create an account ruleset rule
- Delete an account ruleset rule
- Update an account ruleset rule
- List an account ruleset's versions
- Delete an account ruleset version
- Get an account ruleset version
- List an account ruleset version's rules by tag
- Account Subscriptions
- Account-Level Custom Nameservers
- Account-Level Custom Nameservers Usage for a Zone
- Accounts
- Analyze Certificate
- Argo Analytics for Geolocation
- Argo Analytics for Zone
- Argo Smart Routing
- Argo Tunnel
- Audit Logs
- Available Page Rules settings
- Cache Rules
- Certificate Packs
- Client
- Cloudflare IPs
- Cloudflare Images
- Cloudflare Images Keys
- Cloudflare Images Variants
- Cloudflare Tunnel
- Cloudflare Tunnel configuration
- Config Rules
- Custom Error Responses
- Custom Hostname Fallback Origin for a Zone
- Custom Hostname for a Zone
- Custom SSL for a Zone
- Custom pages for a zone
- Custom pages for an account
- DLP Pattern Validation
- DLP Profiles
- DNS Analytics
- DNS Firewall
- DNS Firewall (Legacy)
- DNS Firewall Analytics
- DNS Firewall Analytics (Legacy)
- DNS Records for a Zone
- DNSSEC
- Device Managed Networks
- Device Posture Integrations
- Device Posture Rules
- Devices
- List Devices
- List Device Settings Policies
- Get Default Device Settings Policy
- Update Default Device Settings Policy
- Create Device Settings Policy
- Get Split Tunnel Exclude List
- Set Split Tunnel Exclude List
- Get Local Domain Fallback List
- Set Local Domain Fallback List
- Get Split Tunnel Include List
- Set Split Tunnel Include List
- Delete Device Settings Policy
- Get Device Settings Policy by ID
- Update Device Settings Policy
- Get Split Tunnel Exclude List for a Device Settings Policy
- Set Split Tunnel Exclude List for a Device Settings Policy
- Get Local Domain Fallback List for a Device Settings Policy
- Set Local Domain Fallback List for a Device Settings Policy
- Get Split Tunnel Include List for a Device Settings Policy
- Set Split Tunnel Include List for a Device Settings Policy
- Revoke Devices
- Unrevoke Devices
- Device Details
- List Admin Override code for device
- Diagnostics
- Domain History
- Domain Intelligence
- Durable Objects Namespace
- Email Routing destination addresses
- Email Routing routing rules
- Email Routing settings
- Filters
- Firewall rules
- Health Checks
- IP Access rules for a user
- IP Access rules for a zone
- IP Access rules for an account
- IP Address Management Address Maps
- Remove an account membership from an Address Map
- Add an account membership to an Address Map
- List Address Maps
- Create Address Map
- Delete Address Map
- Address Map Details
- Update Address Map
- Remove an IP from an Address Map
- Add an IP to an Address Map
- Remove a zone membership from an Address Map
- Add a zone membership to an Address Map
- IP Address Management Dynamic Advertisement
- IP Address Management Prefix Delegation
- IP Address Management Prefixes
- IP Intelligence
- IP List
- Keyless SSL for a Zone
- Lists
- Load Balancer Healthcheck Events
- Load Balancer Monitors
- Load Balancer Pools
- Load Balancer Regions
- Load Balancers
- Logpush Jobs
- Logs Received
- Magic GRE tunnels
- Magic IPsec tunnels
- Magic Interconnects
- Magic Network Monitoring Configuration
- Magic Network Monitoring Rules
- Magic PCAP collection
- Magic Static Routes
- Managed Transforms
- Miscategorization
- Notification Alert Types
- Notification History
- Notification Mechanism Eligibility
- Notification destinations with PagerDuty
- Notification policies
- Notification webhooks
- Organization Invites
- Organization Members
- Organization Railgun
- Organization Roles
- Organizations (Deprecated)
- Origin CA
- Origin Rules
- Page Rules
- Page Shield
- Pages Deployment
- Pages Domains
- Pages Project
- Passive DNS by IP
- Per-hostname Authenticated Origin Pull
- Permission Groups
- Phishing URL Information
- Phishing URL Scanner
- Queue
- R2 Bucket
- Radar Annotations
- Radar Attacks
- Get a summary of layer 3 attacks
- Get layer 3 attacks time series
- Get layer 3 attacks by network protocol, over time
- Get a summary of layer 7 attacks
- Get attacks layer 7 time series
- Get layer 7 attacks by mitigation technique, over time
- Get layer 7 top origin ASes
- Get layer 7 top attack pairs (origin and target locations)
- Get layer 7 top origin locations
- Get layer 7 top target locations
- Radar BGP
- Radar DNS
- Radar Datasets
- Radar Entities
- Radar Http
- Get a summary of bot classes
- Get a summary of device types
- Get a summary of HTTP protocols
- Get a summary of HTTP versions
- Get a summary of IP versions
- Get a summary of operating systems
- Get a summary of TLS versions
- Get time series of bot classes
- Get time series of user agents
- Get time series of user agents aggregated in families
- Get time series of device types
- Get time series of HTTP protocols
- Get time series of HTTP versions
- Get time series of IP versions
- Get time series of operating systems
- Get time series of TLS versions
- Get top autonomous systems by HTTP requests
- Get top autonomous systems by bot class
- Get top autonomous systems by device type
- Get top autonomous systems by HTTP protocol
- Get top autonomous systems by HTTP version
- Get top autonomous systems by IP version
- Get top autonomous systems by operating system
- Get top autonomous systems by TLS version
- Get top user agents aggregated in families by HTTP requests
- Get top user agents by HTTP requests
- Get top locations by HTTP requests
- Get top locations by bot class
- Get top locations by device type
- Get top locations by HTTP protocol
- Get top locations by HTTP version
- Get top locations by IP version
- Get top locations by operating system
- Get top locations by TLS version
- Radar Netflows
- Radar Ranking
- Radar Search
- Radar Special Events
- Radar Verified Bots
- Railgun
- Railgun Connections
- Railgun Connections for a Zone
- Rate limits for a zone
- Registrar Domains
- SSL Verification
- SSL
- Secondary DNS (ACL)
- Secondary DNS (Peer)
- Secondary DNS (Primary Zone)
- Secondary DNS (Secondary Zone)
- Secondary DNS (TSIG)
- Single Redirect Rules
- Spectrum Aggregate Analytics
- Spectrum Analytics (By Time)
- Spectrum Analytics (Summary)
- Spectrum Applications
- Stream Live Inputs
- Stream MP4 Downloads
- Stream Signing Keys
- Stream Subtitles
- Stream Video Clipping
- Stream Videos
- Stream Watermark Profile
- Stream Webhook
- Total TLS
- Transform Rules
- Tunnel Virtual Network
- Tunnel route
- URL Normalization
- Universal SSL Settings for a Zone
- User
- User API Tokens
- User Agent Blocking rules
- User Billing History
- User Billing Profile
- User Subscription
- User's Account Memberships
- User's Invites
- User's Organizations
- WAF overrides
- WAF packages
- WAF rule groups
- WAF rules
- WHOIS Record
- Waiting Room
- List waiting rooms
- Create waiting room
- Create a custom waiting room page preview
- Delete waiting room
- Waiting room details
- Patch waiting room
- Update waiting room
- List events
- Create event
- Delete event
- Event details
- Patch event
- Update event
- Preview active event details
- List Waiting Room Rules
- Create Waiting Room Rule
- Replace Waiting Room Rules
- Delete Waiting Room Rule
- Patch Waiting Room Rule
- Get waiting room status
- Web3 Hostname
- List Web3 Hostnames
- Create Web3 Hostname
- Delete Web3 Hostname
- Web3 Hostname Details
- Edit Web3 Hostname
- IPFS Universal Path Gateway Content List Details
- Update IPFS Universal Path Gateway Content List
- List IPFS Universal Path Gateway Content List Entries
- Create IPFS Universal Path Gateway Content List Entry
- Delete IPFS Universal Path Gateway Content List Entry
- IPFS Universal Path Gateway Content List Entry Details
- Edit IPFS Universal Path Gateway Content List Entry
- Worker Account Settings
- Worker Binding (Deprecated)
- Worker Cron Trigger
- Worker Deployments
- Worker Domain
- Worker Filters (Deprecated)
- Worker Routes
- Worker Script
- Worker Script (Deprecated)
- Worker Subdomain
- Worker Tail Logs
- Workers KV Namespace
- Workers KV Request Analytics
- Workers KV Stored Data Analytics
- Zero Trust Gateway Application and Application Type mappings
- Zero Trust Gateway Categories
- Zero Trust Gateway Locations
- Zero Trust Gateway Proxy Endpoints
- Zero Trust Gateway Rules
- Zero Trust Lists
- Zero Trust accounts
- Get device settings for Zero Trust account
- Update device settings for the Zero Trust account
- Get Zero Trust account information
- Create Zero Trust account
- Get Zero Trust account configuration
- Update Zero Trust account configuration
- Get logging settings for the Zero Trust account
- Update logging settings for the Zero Trust account
- Zero Trust organization
- Zero Trust seats
- Zero Trust users
- Zone
- Zone Analytics (Deprecated)
- Zone Cache Settings
- Zone Lockdown
- Zone Rate Plan
- Zone Rulesets
- List zone rulesets
- Create a zone ruleset
- Get a zone entry point ruleset
- Update a zone entry point ruleset
- List a zone entry point ruleset's versions
- Get a zone entry point ruleset version
- Delete a zone ruleset
- Get a zone ruleset
- Update a zone ruleset
- Create a zone ruleset rule
- Delete a zone ruleset rule
- Update a zone ruleset rule
- List a zone ruleset's versions
- Delete a zone ruleset version
- Get a zone ruleset version
- Zone Settings
- Get all Zone settingsGET
- Edit zone settings infoPATCH
- Get 0-RTT session resumption settingGET
- Change 0-RTT session resumption settingPATCH
- Get Advanced DDOS settingGET
- Get Always Online settingGET
- Change Always Online settingPATCH
- Get Always Use HTTPS settingGET
- Change Always Use HTTPS settingPATCH
- Get Automatic HTTPS Rewrites settingGET
- Change Automatic HTTPS Rewrites settingPATCH
- Get Automatic Platform Optimization for WordPress settingsGET
- Change Automatic Platform Optimization for WordPress settingsPATCH
- Get Brotli settingGET
- Change Brotli settingPATCH
- Get Browser Cache TTL settingGET
- Change Browser Cache TTL settingPATCH
- Get Browser Check settingGET
- Change Browser Check settingPATCH
- Get Cache Level settingGET
- Change Cache Level settingPATCH
- Get Challenge TTL settingGET
- Change Challenge TTL settingPATCH
- Get ciphers settingGET
- Change ciphers settingPATCH
- Get Development Mode settingGET
- Change Development Mode settingPATCH
- Get Early Hints settingGET
- Change Early Hints settingPATCH
- Get Email Obfuscation settingGET
- Change Email Obfuscation settingPATCH
- Get HTTP/2 Edge Prioritization settingGET
- Change HTTP/2 Edge Prioritization settingPATCH
- Get Hotlink Protection settingGET
- Change Hotlink Protection settingPATCH
- Get HTTP2 settingGET
- Change HTTP2 settingPATCH
- Get HTTP3 settingGET
- Change HTTP3 settingPATCH
- Get Image Resizing settingGET
- Change Image Resizing settingPATCH
- Get IP Geolocation settingGET
- Change IP Geolocation settingPATCH
- Get IPv6 settingGET
- Change IPv6 settingPATCH
- Get Minimum TLS Version settingGET
- Change Minimum TLS Version settingPATCH
- Get Minify settingGET
- Change Minify settingPATCH
- Get Mirage settingGET
- Change Mirage settingPATCH
- Get Mobile Redirect settingGET
- Change Mobile Redirect settingPATCH
- Get Network Error Logging settingGET
- Change Network Error Logging settingPATCH
- Get Opportunistic Encryption settingGET
- Change Opportunistic Encryption settingPATCH
- Get Opportunistic Onion settingGET
- Change Opportunistic Onion settingPATCH
- Get Orange to Orange (O2O)GET
- Change Orange to Orange (O2O)PATCH
- Get Enable Error Pages On settingGET
- Change Enable Error Pages On settingPATCH
- Get Origin Max HTTP version settingGET
- Change Origin Max HTTP version settingPATCH
- Get Polish settingGET
- Change Polish settingPATCH
- Get prefetch preload settingGET
- Change prefetch preload settingPATCH
- Get Privacy Pass settingGET
- Change Privacy Pass settingPATCH
- Get Proxy Read Timeout settingGET
- Change Proxy Read Timeout settingPATCH
- Get Pseudo IPv4 settingGET
- Change Pseudo IPv4 settingPATCH
- Get Response Buffering settingGET
- Change Response Buffering settingPATCH
- Get Rocket Loader settingGET
- Change Rocket Loader settingPATCH
- Get Security Header (HSTS) settingGET
- Change Security Header (HSTS) settingPATCH
- Get Security Level settingGET
- Change Security Level settingPATCH
- Get Server Side Exclude settingGET
- Change Server Side Exclude settingPATCH
- Get Enable Query String Sort settingGET
- Change Enable Query String Sort settingPATCH
- Get SSL settingGET
- Change SSL settingPATCH
- Get SSL/TLS Recommender enrollmentGET
- Change SSL/TLS Recommender enrollmentPATCH
- Get TLS 1.3 setting enabled for a zoneGET
- Change TLS 1.3 settingPATCH
- Get TLS Client Auth settingGET
- Change TLS Client Auth settingPATCH
- Get True Client IP settingGET
- Change True Client IP settingPATCH
- Get Web Application Firewall (WAF) settingGET
- Change Web Application Firewall (WAF) settingPATCH
- Get WebP settingGET
- Change WebP settingPATCH
- Get WebSockets settingGET
- Change WebSockets settingPATCH
- Zone Subscription
- Zone-Level Access applications
- Zone-Level Access groups
- Zone-Level Access identity providers
- Zone-Level Access mTLS authentication
- Zone-Level Access policies
- Zone-Level Access service tokens
- Zone-Level Access short-lived certificate CAs
- Zone-Level Authenticated Origin Pulls
- Zone-Level Zero Trust organization
- mTLS Certificate Management
Change Rocket Loader setting
PATCH
https://api.cloudflare.com/client/v4/zones/{zone_identifier}/settings/rocket_loader
Zone Settings
Last modified:2022-12-16 13:48:36
window.onload
time (assuming there is JavaScript on the page). This can have a positive impact on your Google search ranking. When turned on, Rocket Loader will automatically defer the loading of all Javascript referenced in your HTML, with no configuration required. Refer to Understanding Rocket Loader for more information.Request
Path Params
zone_identifier
stringÂ
required
Body Params application/json
value
enum<string>Â
required
Allowed values:
onoff
Default:
off
Example
{
"value": "off"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.cloudflare.com/client/v4/zones//settings/rocket_loader' \
--header 'Content-Type: application/json' \
--data-raw '{
"value": "off"
}'
Responses
🟢200Change Rocket Loader setting response
application/json
Body
allOf {2}Â
optional
allOf {2}Â
optional
object (api-response-single)Â
optional
objectÂ
optional
objectÂ
optional
result
object (Rocket Loader)Â
optional
window.onload
time (assuming there is JavaScript on the page). This can have a positive impact on your Google search ranking. When turned on, Rocket Loader will automatically defer the loading of all Javascript referenced in your HTML, with no configuration required. Refer to Understanding Rocket Loader for more information.Example
{
"errors": [],
"messages": [],
"result": {
"editable": true,
"id": "rocket_loader",
"modified_on": "2014-01-01T05:20:00.12345Z",
"value": "off"
},
"success": true
}
🟢200Change Rocket Loader setting response failure