{"id":1634,"date":"2020-06-07T22:28:24","date_gmt":"2020-06-07T14:28:24","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1634"},"modified":"2026-01-12T13:51:13","modified_gmt":"2026-01-12T05:51:13","slug":"what-does-the-rocket-loader-do","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/what-does-the-rocket-loader-do","title":{"rendered":"What does the Rocket Loader do?"},"content":{"rendered":"<h3><img decoding=\"async\" class=\"\" src=\"https:\/\/cf-assets.www.cloudflare.com\/zkvhlag99gkb\/2cL1pzAxSTzVmlhhaMZRtG\/05392751136db950577593942627b615\/how-cloudflare-rocket-loader-redefines-the-modern-cdn.png\" alt=\"How CloudFlare Rocket Loader Redefines the Modern CDN\" width=\"202\" height=\"202\" \/><\/h3>\n<h3><strong>What does the Rocket Loader do?<\/strong><\/h3>\n<p>Rocket Loader priorities your website\u2019s content (text, images, fonts etc) by deferring the loading of all of your JavaScript until after rendering.<\/p>\n<p>On pages with JavaScript, this results in a much faster loading experience for your users and improves the following performance metrics:<\/p>\n<ul>\n<li>Time to First Paint (TTFP)<\/li>\n<li>\u00a0Contentful Paint (TTFCP)<\/li>\n<li>\u00a0Meaningful Paint (TTFMP)<\/li>\n<li>Document Load<\/li>\n<\/ul>\n<p>To learn more about the latest version of Rocket Loader visit our blog:\u00a0<a href=\"https:\/\/blog.cloudflare.com\/we-have-lift-off-rocket-loader-ga-is-mobile\/\" rel=\"nofollow noopener\" target=\"_blank\">Cloudflare<\/a><\/p>\n<p>Addition optional configuration:<\/p>\n<ul>\n<li>If you have a Content Security Policy, you will need to update.<\/li>\n<\/ul>\n<p>It is to allow Rocket Loader to run: What is Content Security Policy (CSP), and how can I use it with Cloudflare?.<\/p>\n<ul>\n<li>If you have specific scripts you want to not optimise, you can do this by modifying your HTML script tags. How can I have Rocket Loader ignore specific JavaScripts?<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What does the Rocket Loader do? Rocket Loader priorities your website\u2019s content (text, images, fonts etc) by deferring the loading of all of your JavaScript until after rendering. On pages with JavaScript, this results in a much faster loading experience for your users and improves the following performance metrics: Time to First Paint (TTFP) \u00a0Contentful Paint (TTFCP) \u00a0Meaningful Paint (TTFMP)&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[43],"kbtag":[1409],"class_list":["post-1634","kb","type-kb","status-publish","hentry","kbtopic-cloudflare","kbtag-rocket-loader"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=1634"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1634\/revisions"}],"predecessor-version":[{"id":6013,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1634\/revisions\/6013"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1634"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1634"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}