{"id":3335544,"date":"2021-05-04T17:34:17","date_gmt":"2021-05-04T15:34:17","guid":{"rendered":"https:\/\/wp-rocket.me\/?post_type=core_web_vitals_hub&#038;p=3335544"},"modified":"2024-09-12T15:35:48","modified_gmt":"2024-09-12T13:35:48","slug":"reduce-javascript-execution-time","status":"publish","type":"core_web_vitals_hub","link":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/","title":{"rendered":"How to Reduce Javascript Execution Time (Manually and With Plugins)"},"content":{"rendered":"<p>Reducing JavaScript execution time is one of the most critical PageSpeed Insights recommendations. Since JavaScript can hugely affect your WordPress site\u2019s performance, it\u2019s essential to manage any JS issues that slow down the loading time.<\/p><p>In this article, you\u2019ll first understand the impact of JavaScript execution on performance. Then, you&#8217;ll learn how to measure and identify the JS issues and how to reduce the JS execution time on your WordPress site, both manually and with some plugins.<\/p><h2 class=\"wp-block-heading\">What\u2019s the Impact of JS Execution Time on Performance?<\/h2><p>You can see how the JS execution time affects performance by looking at the Interaction to Next Paint and First Input Delay metrics and the <a href=\"https:\/\/wp-rocket.me\/lighthouse-performance-score-wordpress\/\">Lighthouse performance score<\/a>.&nbsp;In particular, INP is the new Core Web Vital metric replacing FID starting from March 2024.<\/p><p>JavaScript execution time is closely related to the FID and INP scores, which measure the page\u2019s interactivity and responsiveness. If you try to interact with a page, and you don\u2019t get any response, it means that the browser is busy processing some JS files. That\u2019s why you should try to reduce the size of these JS scripts as much as possible.<\/p><p>The FID metric is closely tied to the <a href=\"https:\/\/wp-rocket.me\/lighthouse-performance-score-wordpress\/reduce-total-blocking-time\/\">Total Blocking Time (TBT)<\/a>, one of the Lighthouse performance metrics (based on Lab data). Since the TBT score accounts for 30% of the overall <a href=\"https:\/\/wp-rocket.me\/blog\/improve-lighthouse-performance-score-wordpress\/\">Lighthouse performance score<\/a>, you can understand how your PageSpeed Insights score will be affected by JavaScript issues.<\/p><p>Let\u2019s see in more detail what it means.<\/p><h2 class=\"wp-block-heading\">How to Measure JavaScript Execution Time and Identify the Main JS Issues&nbsp;<\/h2><p>Reducing JS execution time means reducing the time spent by the browser to parse, compile and execute JS once downloaded.&nbsp;<\/p><p><strong>Parsing, compiling, and executing are the three steps you should manage to reduce the JS execution time.<\/strong><\/p><p>Every time the JS execution is longer than 2 seconds, Lighthouse will report it as an issue to solve.<\/p><p>You can identify and measure JS execution time via PageSpeed Insights and GTmetrix.<\/p><h3 class=\"wp-block-heading\">Measuring JS Execution Time via Pagespeed Insights<\/h3><p>If your URL has any JS Execution time issues, Google PageSpeed Insights will show a warning in the Diagnostics section:<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"308\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png\" alt=\"Reduce JavaScript execution time - PSI\n\" class=\"wp-image-3335554\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png 845w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI-310x113.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI-768x280.png 768w\" sizes=\"(max-width: 845px) 100vw, 845px\" \/><figcaption class=\"wp-element-caption\">Reduce JavaScript execution time &#8211; PSI<br><\/figcaption><\/figure><p>As you can see, PSI shows the JS execution time by each step:&nbsp;<\/p><ul class=\"wp-block-list\"><li>Script evaluation (it\u2019s the compiling stage)<\/li>\n\n<li>Script parse (it\u2019s the parsing stage)&nbsp;<\/li>\n\n<li>Total CPU Time (it\u2019s the memory cost, which can freeze up your page completely).<\/li><\/ul><p>As mentioned above, <strong>the audit considers each JS script with an execution time longer than 2 seconds.<\/strong><\/p><h3 class=\"wp-block-heading\">Measuring JS Execution Time via GTmetrix<\/h3><p>When testing your URL\u2019s performance, GTmetrix shows you a very similar audit.&nbsp;<\/p><p>Go to the Structure tab, and look for the status of the JS execution time. You\u2019ll then get the information about each JS stage.<\/p><p>In the example below, the JS execution time is above 2 seconds.&nbsp;<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1040\" height=\"201\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/js-execution-time-gtmetrix.png\" alt=\"\" class=\"wp-image-3335563\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/js-execution-time-gtmetrix.png 1040w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/js-execution-time-gtmetrix-310x60.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/js-execution-time-gtmetrix-768x148.png 768w\" sizes=\"(max-width: 1040px) 100vw, 1040px\" \/><figcaption class=\"wp-element-caption\">JavaScript execution time &#8211; GTmetrix<\/figcaption><\/figure><h2 class=\"wp-block-heading\">How to Reduce JavaScript Execution Time (Manually and With Plugins)<\/h2><p>There are three main ways to reduce JS execution time:<\/p><ol class=\"wp-block-list\"><li><a href=\"#delay-js-remove-unused-js\">Delay JS and Remove Unused JS<\/a><\/li>\n\n<li><a href=\"#defer-js\">Defer JS<\/a><\/li>\n\n<li><a href=\"#minify-js\">Minify JS<\/a>.<\/li><\/ol><p>Let\u2019s see how you can implement each of these actions and address the PageSpeed Insights recommendation.<\/p><h3 class=\"wp-block-heading\" id=\"delay-js-remove-unused-js\">1. Delay JS and Remove Unused JS<\/h3><p>You should delay JS files so that none of them will be loaded until user interaction. It means that as long as no user clicks on a button or scrolls a page\u2019s content, the browser will not execute any JS scripts.<\/p><p>You should also remove unused JS files. In other words, all the JS scripts that are useless or not included in the above-the-page content should be loaded only after the page\u2019s rendering. It\u2019s a way to let the browser render only the essential content without getting stuck with not-needed JS files.<\/p><p>Several plugins can help you delay JS and remove unused JS:<\/p><ul class=\"wp-block-list\"><li><a href=\"https:\/\/wordpress.org\/plugins\/flying-scripts\/\">Flying Scripts<\/a><\/li>\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/wp-meteor\/\">WP Meteor<\/a><\/li>\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/plugin-organizer\/\">Plugin Organizer<\/a><\/li>\n\n<li><a href=\"https:\/\/gonzalesplugin.com\/\">Gonzales<\/a><\/li>\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/wp-asset-clean-up\/\">Asset CleanUp<\/a>.<\/li><\/ul><p>You can also take advantage of the Delay JavaScript execution feature provided by WP Rocket. It\u2019s the easiest way to tackle <a href=\"https:\/\/wp-rocket.me\/blog\/wp-rocket-3-7\/#section-2\">JavaScript execution <\/a>in just a few clicks.\u00a0<\/p><p>Go to The File Optimization tab and flag the Delay JavaScript execution option. The plugin will automatically delay loading the JS files until user interaction. Easy and fast, right? <\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"991\" height=\"458\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/11\/delay-js-execution-3-9-1.png\" alt=\"Delay JavaScript execution - WP Rocket\" class=\"wp-image-3873972\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/11\/delay-js-execution-3-9-1.png 991w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/11\/delay-js-execution-3-9-1-310x143.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/11\/delay-js-execution-3-9-1-768x355.png 768w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/11\/delay-js-execution-3-9-1-130x60.png 130w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/11\/delay-js-execution-3-9-1-195x90.png 195w\" sizes=\"(max-width: 991px) 100vw, 991px\" \/><figcaption class=\"wp-element-caption\"> Delay JavaScript execution &#8211; WP Rocket <\/figcaption><\/figure><p><br><a href=\"https:\/\/wp-rocket.me\/features\/\">Get WP Rocket now and test your site&#8217;s improvements right away!<\/a><\/p><h3 class=\"wp-block-heading\" id=\"defer-js\">2. Defer JS&nbsp;<\/h3><p>Another effective way to deal with the JS execution time is to defer JS files.<\/p><p>By<a href=\"https:\/\/wp-rocket.me\/blog\/deferred-loading-of-javascript\/\"> deferring JavaScript on your WordPress sites<\/a>, the browser will load them only when the page\u2019s rendering is done.<\/p><p><strong>You have different ways to defer JS files, both manually and with plugins.<\/strong><\/p><p>If you want to implement the defer attribute yourself, you should first identify the JS scripts to defer and then add the defer attribute.&nbsp;<\/p><p>Here\u2019s an example of the defer attribute:<\/p><p>&lt;script defer src=&#8221;\/example-js-script&#8221;&gt;&lt;\/script&gt;<\/p><p>If you prefer using a plugin, you can use Asset CleanUp.&nbsp;<\/p><p>You can also take advantage of another WP Rocket powerful feature: <strong>Load Javascript Deferred.<\/strong><\/p><p>In the File optimization tab, you\u2019ll find the option to Load JS deferred and exclude any specific JS files from being deferred, too. In a few clicks, you\u2019ll tackle a crucial web performance optimization technique!<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"630\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/File-optimization-Tab-Load-JavaScript-deferred-1-e1617291585235.png\" alt=\"\" class=\"wp-image-3335576\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/File-optimization-Tab-Load-JavaScript-deferred-1-e1617291585235.png 800w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/File-optimization-Tab-Load-JavaScript-deferred-1-e1617291585235-248x195.png 248w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/File-optimization-Tab-Load-JavaScript-deferred-1-e1617291585235-768x605.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Load JavaScript deferred &#8211; WP Rocket<br><\/figcaption><\/figure><h3 class=\"wp-block-heading\" id=\"minify-js\">3. Minify JS<\/h3><p>The third option to tackle JS issues is through minification. Minification removes the line breaks, white spaces, and comments included in the code. As a result, the code is lighter, and the file size is faster.<\/p><p>Since minification is a time-consuming activity, and there\u2019s always the risk of missing out on something, we recommend using a plugin.<\/p><p>Several <a href=\"https:\/\/wp-rocket.me\/blog\/best-free-css-and-javascript-minification-tools\/\">JavaScript minification tools for WordPress<\/a> will help you get the job done.<\/p><p>Once again, WP Rocket offers you an easy way to minify JS files. Go to the File Optimization tab and enable the Minify JS files option. Easy and fast as that!<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1176\" height=\"706\" src=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/minify-JS-files.png\" alt=\"\" class=\"wp-image-3335592\" srcset=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/minify-JS-files.png 1176w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/minify-JS-files-310x186.png 310w, https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/minify-JS-files-768x461.png 768w\" sizes=\"(max-width: 1176px) 100vw, 1176px\" \/><figcaption class=\"wp-element-caption\">Minify JS Files &#8211; WP Rocket<br><\/figcaption><\/figure><h3 class=\"wp-block-heading\">Other WordPress Recommendations to Reduce JS Execution Time<\/h3><p>As a WordPress user, there are other useful recommendations to keep in mind.&nbsp;<\/p><p>Overall, you should avoid using functionality \u2014 such as plugins and widgets \u2014 requiring a lot of JavaScript when a simpler solution can replace it. For instance:<\/p><ul class=\"wp-block-list\"><li>Use a static image instead of a slider (especially if the slide is at the top of the page)<\/li>\n\n<li>Avoid overusing widgets such as social network (e.g., the social widgets in your sidebar)<\/li>\n\n<li>Avoid overusing 3rd party resources (e.g., ads, trackers, personalization layers, A\/B testing).<\/li><\/ul><p><\/p><div id=\"om-nyrydv5iync8zrrulm5i-holder\"><\/div>\n\t<script>(function (d, u, ac) {\n\t\t\tvar s = d.createElement('script')\n\t\t\ts.type = 'text\/javascript'\n\t\t\ts.src = 'https:\/\/a.omappapi.com\/app\/js\/api.min.js'\n\t\t\ts.async = true\n\t\t\ts.dataset.user = u\n\t\t\ts.dataset.campaign = ac\n\t\t\td.getElementsByTagName('head')[0].appendChild(s)\n\t\t})(document, 20440, 'nyrydv5iync8zrrulm5i')<\/script><h2 class=\"wp-block-heading\">Start Reducing JS Execution Time Today<\/h2><p>Reducing JS Execution time is a crucial step in improving the FID and INP scores and boosting your PageSpeed Insights performance score. Overall, it\u2019s an essential way to provide your users with an excellent user experience.<\/p><p>Thanks to WP Rocket, you can tackle the main JS issues in just a few clicks. You\u2019ll save time and effort!<\/p><p>Not a WP Rocket customer yet? Save yourself time and let WP Rocket do the job for you. <a href=\"https:\/\/wp-rocket.me\/features\/\"><strong>WP Rocket is the easiest way to improve your PageSpeed Insights score<\/strong><\/a>.&nbsp;<\/p><p><strong>You can always count on our 100% money-back guarantee. <\/strong>Although we don\u2019t think you\u2019ll ever want one, we\u2019ll gladly provide a refund if you request it within 14 days of purchase.<\/p><p>\ud83d\ude80 <strong>The only risk you\u2019ll be taking with our plugin is speeding up your website. <\/strong>WP Rocket automatically applies 80% of web performance best practices, instantly boosting your Core Web Vitals scores.&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Are you looking for a way to reduce JavaScript Execution Time on your WordPress site? Keep reading! You\u2019ll find everything you need to know to address the PageSpeed Insights recommendation.<\/p>\n","protected":false},"template":"","core_web_vitals":[159],"class_list":["post-3335544","core_web_vitals_hub","type-core_web_vitals_hub","status-publish","hentry","core_web_vitals-improve-interaction-to-next-paint"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>3 Ways to Reduce JavaScript Execution on WordPress<\/title>\n<meta name=\"description\" content=\"Looking for a way to reduce JavaScript Execution Time on WordPress? Keep reading! You\u2019ll find everything you need to know to address the PageSpeed Insights recommendation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"3 Ways to Reduce JavaScript Execution on WordPress\" \/>\n<meta property=\"og:description\" content=\"Looking for a way to reduce JavaScript Execution Time on WordPress? Keep reading! You\u2019ll find everything you need to know to address the PageSpeed Insights recommendation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Rocket\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-12T13:35:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wp_rocket\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/\",\"url\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/\",\"name\":\"3 Ways to Reduce JavaScript Execution on WordPress\",\"isPartOf\":{\"@id\":\"https:\/\/wp-rocket.me\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png\",\"datePublished\":\"2021-05-04T15:34:17+00:00\",\"dateModified\":\"2024-09-12T13:35:48+00:00\",\"description\":\"Looking for a way to reduce JavaScript Execution Time on WordPress? Keep reading! You\u2019ll find everything you need to know to address the PageSpeed Insights recommendation.\",\"breadcrumb\":{\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#primaryimage\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png\",\"width\":845,\"height\":308},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wp-rocket.me\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Core Web Vitals\",\"item\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Interaction to Next Paint\",\"item\":\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-interaction-to-next-paint\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Reduce Javascript Execution Time (Manually and With Plugins)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp-rocket.me\/#website\",\"url\":\"https:\/\/wp-rocket.me\/\",\"name\":\"WP Rocket\",\"description\":\"Plugin d&#039;optimisation de sites WordPress\",\"publisher\":{\"@id\":\"https:\/\/wp-rocket.me\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp-rocket.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/wp-rocket.me\/#organization\",\"name\":\"WP Rocket\",\"url\":\"https:\/\/wp-rocket.me\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"contentUrl\":\"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png\",\"width\":150,\"height\":41,\"caption\":\"WP Rocket\"},\"image\":{\"@id\":\"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829\",\"https:\/\/x.com\/wp_rocket\",\"https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"3 Ways to Reduce JavaScript Execution on WordPress","description":"Looking for a way to reduce JavaScript Execution Time on WordPress? Keep reading! You\u2019ll find everything you need to know to address the PageSpeed Insights recommendation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/","og_locale":"en_US","og_type":"article","og_title":"3 Ways to Reduce JavaScript Execution on WordPress","og_description":"Looking for a way to reduce JavaScript Execution Time on WordPress? Keep reading! You\u2019ll find everything you need to know to address the PageSpeed Insights recommendation.","og_url":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/","og_site_name":"WP Rocket","article_publisher":"https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","article_modified_time":"2024-09-12T13:35:48+00:00","og_image":[{"url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png"}],"twitter_card":"summary_large_image","twitter_site":"@wp_rocket","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/","url":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/","name":"3 Ways to Reduce JavaScript Execution on WordPress","isPartOf":{"@id":"https:\/\/wp-rocket.me\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#primaryimage"},"image":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#primaryimage"},"thumbnailUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png","datePublished":"2021-05-04T15:34:17+00:00","dateModified":"2024-09-12T13:35:48+00:00","description":"Looking for a way to reduce JavaScript Execution Time on WordPress? Keep reading! You\u2019ll find everything you need to know to address the PageSpeed Insights recommendation.","breadcrumb":{"@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#primaryimage","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/2021\/05\/Reduce-JavaScript-execution-time-PSI.png","width":845,"height":308},{"@type":"BreadcrumbList","@id":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/reduce-javascript-execution-time\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wp-rocket.me"},{"@type":"ListItem","position":2,"name":"Core Web Vitals","item":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/"},{"@type":"ListItem","position":3,"name":"Interaction to Next Paint","item":"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/improve-interaction-to-next-paint\/"},{"@type":"ListItem","position":4,"name":"How to Reduce Javascript Execution Time (Manually and With Plugins)"}]},{"@type":"WebSite","@id":"https:\/\/wp-rocket.me\/#website","url":"https:\/\/wp-rocket.me\/","name":"WP Rocket","description":"Plugin d&#039;optimisation de sites WordPress","publisher":{"@id":"https:\/\/wp-rocket.me\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp-rocket.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wp-rocket.me\/#organization","name":"WP Rocket","url":"https:\/\/wp-rocket.me\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/","url":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","contentUrl":"https:\/\/wp-rocket.me\/wp-content\/uploads\/1\/logo-wp-rocket-paypal-2.png","width":150,"height":41,"caption":"WP Rocket"},"image":{"@id":"https:\/\/wp-rocket.me\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/WP-Rocket\/631942253526829","https:\/\/x.com\/wp_rocket","https:\/\/www.youtube.com\/channel\/UC1ozThXHd1IWIZ5wkshgp_Q"]}]}},"_links":{"self":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals_hub\/3335544"}],"collection":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals_hub"}],"about":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/types\/core_web_vitals_hub"}],"wp:attachment":[{"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/media?parent=3335544"}],"wp:term":[{"taxonomy":"core_web_vitals","embeddable":true,"href":"https:\/\/wp-rocket.me\/wp-json\/wp\/v2\/core_web_vitals?post=3335544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}