{"id":8840,"date":"2024-05-09T00:11:24","date_gmt":"2024-05-08T22:11:24","guid":{"rendered":"https:\/\/shortpixel.com/blog\/?p=8840"},"modified":"2024-11-22T15:39:04","modified_gmt":"2024-11-22T13:39:04","slug":"javascript-execution-time","status":"publish","type":"post","link":"https:\/\/shortpixel.com\/blog\/javascript-execution-time\/","title":{"rendered":"5 Best Ways to Reduce JavaScript Execution Time to Speed Up WordPress"},"content":{"rendered":"\n<p>Have you ever clicked on a website and seen some parts of the screen loading quickly and the rest taking forever?<\/p>\n\n\n\n<p>Often, the culprit behind these sluggish experiences is inefficient JavaScript execution time, particularly in WordPress sites.<\/p>\n\n\n\n<p>You can adjust the JavaScript execution time using different methods, such as WordPress plugins or JavaScript timers.<\/p>\n\n\n\n<p>You can transform your website into a fast, responsive, and user-friendly platform by learning how to manage JavaScript execution effectively.<\/p>\n\n\n\n<p>In this article, we will dive deep into implementing time delay javascript and adjusting JavaScript execution time.<\/p>\n\n\n\n<p>Let&#8217;s dive deep!<\/p>\n\n\n\n<div class=\"wp-block-group has-border-color has-palette-color-8-background-color has-background is-layout-constrained wp-container-core-group-is-layout-239228e0 wp-block-group-is-layout-constrained\" style=\"border-color:#888888;border-width:1px;border-radius:20px;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)\">\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\n<div class=\"wp-block-outermost-icon-block\"><div class=\"icon-container\" style=\"width:25px;transform:rotate(0deg) scaleX(1) scaleY(1)\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" id=\"Layer_1\" viewBox=\"0 0 90.96 101.06\"><defs><style>.cls-1{fill:#efcc08;}<\/style><\/defs><path d=\"m53.54,79.72h-16.25c-1.48,0-2.68-1.2-2.68-2.68v-1.88c.02-1.62-.06-2.75-.23-3.39-.91-3.34-3.33-6.14-5.66-8.86-.77-.89-1.5-1.74-2.17-2.59-3.36-4.28-5.15-9.41-5.15-14.85,0-13.28,10.81-24.08,24.09-24.08s24.08,10.8,24.08,24.08c0,5.44-1.78,10.58-5.15,14.85-.59.76-1.27,1.55-1.98,2.39-2.39,2.82-5.07,5.96-5.99,9.28-.16.59-.24,1.66-.23,3.15v1.9c0,1.48-1.19,2.68-2.67,2.68h0Z\"><\/path><path class=\"cls-1\" d=\"m39.97,74.36h10.89c.03-2.08.23-3.11.42-3.78,1.24-4.47,4.32-8.1,7.03-11.28.71-.84,1.34-1.57,1.89-2.27,2.62-3.33,4.01-7.32,4.01-11.55,0-10.33-8.4-18.73-18.72-18.73s-18.73,8.4-18.73,18.73c0,4.22,1.38,8.21,4.01,11.54.62.79,1.3,1.57,2.02,2.4,2.47,2.87,5.54,6.43,6.78,10.95.18.71.39,1.78.42,3.99h0Z\"><\/path><path d=\"m53.54,90.34h-16.25c-1.48,0-2.68-1.2-2.68-2.68s1.19-2.67,2.68-2.67h16.25c1.48,0,2.67,1.19,2.67,2.67s-1.19,2.68-2.67,2.68h0Z\"><\/path><path d=\"m49.48,101.06h-8.12c-1.48,0-2.68-1.2-2.68-2.68s1.2-2.68,2.68-2.68h8.12c1.47,0,2.68,1.2,2.68,2.68s-1.2,2.68-2.68,2.68h0Z\"><\/path><path d=\"m88.29,48.16h-10.7c-1.48,0-2.68-1.19-2.68-2.68s1.2-2.68,2.68-2.68h10.7c1.48,0,2.67,1.2,2.67,2.68s-1.19,2.68-2.67,2.68h0Z\"><\/path><path d=\"m13.38,48.16H2.67c-1.48,0-2.67-1.19-2.67-2.68s1.19-2.68,2.67-2.68h10.7c1.48,0,2.68,1.2,2.68,2.68,0,1.48-1.2,2.68-2.68,2.68h0Z\"><\/path><path d=\"m45.48,16.06c-1.48,0-2.68-1.19-2.68-2.68V2.68c0-1.48,1.2-2.68,2.68-2.68s2.68,1.2,2.68,2.68v10.7c0,1.48-1.19,2.68-2.68,2.68h0Z\"><\/path><path d=\"m75.74,78.42c-.68,0-1.36-.26-1.89-.79l-7.57-7.57c-1.04-1.04-1.04-2.74,0-3.79,1.05-1.04,2.74-1.04,3.78,0l7.57,7.57c1.05,1.05,1.05,2.75,0,3.79-.52.53-1.2.78-1.9.78h0Z\"><\/path><path d=\"m22.77,25.46c-.68,0-1.37-.26-1.9-.79l-7.56-7.56c-1.05-1.05-1.05-2.75,0-3.79,1.05-1.04,2.74-1.04,3.78,0l7.57,7.57c1.05,1.04,1.05,2.75,0,3.79-.52.53-1.21.79-1.9.79h0Z\"><\/path><path d=\"m15.21,78.42c-.68,0-1.37-.26-1.89-.78-1.05-1.04-1.05-2.74,0-3.79l7.57-7.57c1.04-1.04,2.73-1.04,3.78,0,1.05,1.05,1.05,2.75,0,3.79l-7.57,7.57c-.53.52-1.21.78-1.89.78h0Z\"><\/path><path d=\"m68.18,25.46c-.68,0-1.37-.26-1.9-.79-1.04-1.04-1.04-2.74,0-3.78l7.57-7.57c1.04-1.04,2.74-1.05,3.78,0,1.05,1.05,1.05,2.74,0,3.79l-7.56,7.56c-.52.53-1.21.79-1.9.79h0Z\"><\/path><\/svg><\/div><\/div>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Quick Takeaways<\/strong><\/p>\n<\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JavaScript execution time affects WordPress site performance, slowing down page load times and responsiveness.<\/li>\n\n\n\n<li>Tools like Google <a href=\"https:\/\/pagespeed.web.dev\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/pagespeed.web.dev\/\" rel=\"noreferrer noopener\">PageSpeed Insights<\/a> and <a href=\"https:\/\/gtmetrix.com\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/gtmetrix.com\/\" rel=\"noreferrer noopener\">GTmetrix<\/a> help measure JavaScript execution time.<\/li>\n\n\n\n<li>Optimizing JavaScript execution can improve Core Web Vitals (LCP, FID) and reduce memory consumption.<\/li>\n\n\n\n<li>Best practices include removing bloated themes\/plugins, and using a WordPress accelerator plugin like <a href=\"https:\/\/fastpixel.io\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/fastpixel.io\/\" rel=\"noreferrer noopener\">FastPixel<\/a> for caching, minification, and optimization.<\/li>\n\n\n\n<li>Minifying JavaScript reduces file size and speeds up execution.<\/li>\n\n\n\n<li>Optimizing JavaScript execution leads to faster, more responsive websites and a better user experience.<\/li>\n<\/ul>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What is Time Delay JavaScript Execution In WordPress?<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/dont-know-what-that-means.gif\"><img decoding=\"async\" width=\"498\" height=\"269\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/dont-know-what-that-means.gif\" alt=\"I dont know what that means.gif\" class=\"wp-image-9165\" style=\"width:637px;height:auto\" title=\"\"><\/a><\/figure>\n\n\n\n<p>Have you ever wondered what makes a web page load when clicking a link?<\/p>\n\n\n\n<p>The key lies in how a browser loads its core elements.<\/p>\n\n\n\n<p>JavaScript files load right after the initial web page files load. Then, it loads the rest of the webpage, making it user-responsive.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Understanding the web page loading process<\/strong><\/p>\n\n\n\n<p>Let&#8217;s see how a web page files load.<\/p>\n\n\n\n<p><strong>Initial Page Files \u2192 JavaScript Files \u2192 Rest of the Webpage Files<\/strong><\/p>\n\n\n\n<p>When you enter a webpage, the initial files load first, setting the stage for what&#8217;s to come.&nbsp;<\/p>\n\n\n\n<p>The rest of the page will load appropriately once JavaScript is fully loaded. Then, it enters JavaScript.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/how-web-page-loads.png\"><img decoding=\"async\" width=\"1000\" height=\"640\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/how-web-page-loads.png\" alt=\"how web page loads\" class=\"wp-image-9228\" style=\"width:803px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/how-web-page-loads.png 1000w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/how-web-page-loads-300x192.png 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/how-web-page-loads-768x492.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><figcaption class=\"wp-element-caption\">(Image Sorce: <a href=\"https:\/\/medium.com\/@addyosmani\/progressive-web-apps-with-react-js-part-2-page-load-performance-33b932d97cf2\" target=\"_blank\" rel=\"noopener\">Medium<\/a>)<\/figcaption><\/figure>\n\n\n\n<p>In this image, Google Software Engineer <a href=\"https:\/\/addyosmani.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Addy Osmani<\/a>, who is also in charge of the Chrome experience, demonstrates how a web page loads.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>How Time Delay JavaScript Works<\/strong><\/p>\n\n\n\n<p>It&#8217;s where the time delay JavScript comes into play. <\/p>\n\n\n\n<p>If your page contains larger JavaScript files, it will take longer to load, and the rest of the webpage files will be pending. It will slow the page loading.<\/p>\n\n\n\n<p>But you need each element to enter the stage at precisely the right moment for maximum effect.<\/p>\n\n\n\n<p>Here&#8217;s where the strategy of intentional delay comes into play. You can manually set the JavaScript to delay loading after the entire page loads.<\/p>\n\n\n\n<p>Say you delayed the JavaScript 2 seconds, and it takes 2 seconds for the rest of the web page to load. So, the entire page will load first and then Javascript.<\/p>\n\n\n\n<p>The workflow structure would look alike,<\/p>\n\n\n\n<p><strong>Initial Page Files <strong>\u2192<\/strong> Rest of the Webpage Files <strong>\u2192<\/strong> JavaScript Files&nbsp;<\/strong><\/p>\n\n\n\n<p>This deliberate delay, known as a JavaScript execution delay or time delay, ensures the rest of the page is ready and responsive before JavaScript steals the show.<\/p>\n\n\n\n<p>You can achieve this delay using a variety of techniques and conditions,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Time:<\/strong>&nbsp;Set a timer to load the JavaScript only after a certain period, allowing the rest of the page to load undisturbed.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Condition:<\/strong>&nbsp;You can instruct it to load JavaScript files under certain conditions. For example, you could delay execution until the user has been on the page for a precise time.<\/li>\n\n\n\n<li><strong>Interactions:&nbsp;<\/strong>You can postpone loading JavaScript files until user interactions occur. It waits for a button (if selected) to click before running the code.<\/li>\n<\/ul>\n\n\n\n<p>Controlling execution sequences with delays helps with many scripts on a page. It&#8217;s beneficial for ensuring that scripts run in order.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\">Impact of JavaScript Execution Time on WordPress Performance<\/h2>\n\n\n\n<p>JavaScript execution time significantly affects WordPress website performance.<\/p>\n\n\n\n<p>Browser engines download and execute JavaScript files when webpages load. These rendering engines retrieve these files from their locations on the page.<\/p>\n\n\n\n<p>It happens before the engine proceeds to parse the remaining content. So, delaying JavaScript execution speeds up webpage loading.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Impact The Core Web Vitals:&nbsp;&nbsp;<\/strong>Long or complex JavaScript slows browser response, increasing&nbsp;<a target=\"_blank\" href=\"https:\/\/web.dev\/articles\/optimize-fid#:~:text=First%20Input%20Delay%20(FID)%20is,to%20respond%20to%20that%20interaction.\" rel=\"noreferrer noopener\">First Input Delay (FID)<\/a>&nbsp;and making websites less responsive. Similarly, JavaScript impacts&nbsp;<a target=\"_blank\" href=\"https:\/\/web.dev\/articles\/lcp#:~:text=Note%3A%20Largest%20Contentful%20Paint%20(LCP,that%20the%20page%20is%20useful.\" rel=\"noreferrer noopener\">the Largest Contentful Paint (LCP)<\/a>, which measures how quickly the main content of a page loads.<\/li>\n\n\n\n<li><strong>Memory Consumption:&nbsp;<\/strong>Longer or more complex JavaScript scripts require more memory allocation, increasing the risk of memory leaks for unoptimized code. It can cause inefficient garbage collection and memory overuse.<\/li>\n\n\n\n<li><strong>Render-Blocking:<\/strong> JavaScript files are often render-blocking resources. When loaded in a document&#8217;s head, they must be processed before rendering.<\/li>\n\n\n\n<li><strong>Blocks User Interaction:<\/strong>&nbsp;Long JavaScript execution delays event handlers. If a user clicks a button before the JavaScript handling that event loads and executes, the action may not register, causing confusion or repeated clicks.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to Measure JavaScript Execution Time?<\/h2>\n\n\n\n<p>Speeding up your website is crucial. To do so, address one of the critical points: browsers can&#8217;t take much time to execute JavaScript code.<\/p>\n\n\n\n<p>There are three main steps to focus on:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Parsing JavaScript&nbsp;<\/li>\n\n\n\n<li>Compiling JavaScript&nbsp;<\/li>\n\n\n\n<li>Executing JavaScript<\/li>\n<\/ul>\n\n\n\n<p>To advance the process, you need to manage these steps effectively.<\/p>\n\n\n\n<p>It&#8217;s essential to check how long it takes for the JavaScript to execute. If it exceeds 2 seconds, Lighthouse will flag it as an issue.<\/p>\n\n\n\n<p>Measuring JavaScript execution time is easy. You can use tools like Chrome Dev Tools, PageSpeed Insights or GTmetrix.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Catchpont Web Page Test<\/h3>\n\n\n\n<p>You can use the <a href=\"https:\/\/www.webpagetest.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Catchpoint Web Page Test tool<\/a> to run an overall performance test and see how the core web vitals are performing. The tools also display the loading times for each technology you are utilizing.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/web-page-test-total-blocking-time-test.png\"><img decoding=\"async\" width=\"1024\" height=\"337\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/web-page-test-total-blocking-time-test-1024x337.png\" alt=\"\" class=\"wp-image-9255\" style=\"width:1053px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/web-page-test-total-blocking-time-test-1024x337.png 1024w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/web-page-test-total-blocking-time-test-300x99.png 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/web-page-test-total-blocking-time-test-768x253.png 768w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/web-page-test-total-blocking-time-test.png 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Using Google Pagespeed Insights&nbsp;<\/h3>\n\n\n\n<p>Open the <a href=\"https:\/\/pagespeed.web.dev\/\" target=\"_blank\" rel=\"noopener\">Google PageSpeed Insights<\/a> in your browser. Enter your website URL and click on <strong>Analyze<\/strong>.<\/p>\n\n\n\n<p>If your website&#8217;s JavaScript files take over 2 seconds to execute, PageSpeed Insights flags it as an error. It will prompt you to make improvements.<\/p>\n\n\n\n<p>To identify the JavaScript execution issue, navigate to the Diagnostics section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/javascript-execution-time.jpg\"><img decoding=\"async\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/javascript-execution-time.jpg\" alt=\"javascript execution time\" class=\"wp-image-9250\" style=\"width:1005px;height:auto\" title=\"\"><\/a><\/figure>\n\n\n\n<p>The web page&#8217;s JavaScript execution time exceeds 2 seconds. Thus, PageSpeed Insights recommends reducing it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Using GTmetrix&nbsp;<\/h3>\n\n\n\n<p><a href=\"https:\/\/gtmetrix.com\/\" target=\"_blank\" rel=\"noopener\">GTmetrix<\/a> provides a very similar audit to PageSpeed Insights.<\/p>\n\n\n\n<p>To measure JavaScript execution time through GTmetrix, first, open GTmetrix in your browser. Then, enter your website URL and click &#8220;Test your site.&#8221;<\/p>\n\n\n\n<p>Navigate to the Structure tab to check for JavaScript execution issues.&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/gtmetrix-javascript-execution-time-test.jpg\"><img decoding=\"async\" width=\"1000\" height=\"250\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/gtmetrix-javascript-execution-time-test.jpg\" alt=\"\" class=\"wp-image-9251\" style=\"width:985px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/gtmetrix-javascript-execution-time-test.jpg 1000w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/gtmetrix-javascript-execution-time-test-300x75.jpg 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/gtmetrix-javascript-execution-time-test-768x192.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p>The web page&#8217;s JavaScript execution time is less than 2 seconds.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5 Best Ways to Reduce JavaScript Execution Time to Speed Up WordPress<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Remove Bloated Theme\/plugins<\/h3>\n\n\n\n<p>Bloated themes and plugins contain unnecessary features. It affects your website\u2019s performance.<\/p>\n\n\n\n<p>Recently, the market has flooded with WordPress multipurpose multipurpose themes. The idea of serving all users makes these themes huge to meet diverse user needs.<\/p>\n\n\n\n<p>Using one of those themes will slow down your page loading time. They have large JavaScript files and unnecessary code that consume more resources, such as CPU and RAM.<\/p>\n\n\n\n<p>Removing bloated themes and plugins cleans unnecessary code and large JavaScript files.<\/p>\n\n\n\n<p><strong>Chrome DevTools<\/strong><\/p>\n\n\n\n<p>Use&nbsp; <a href=\"https:\/\/developer.chrome.com\/docs\/devtools\" target=\"_blank\" rel=\"noopener\">Chrome DevTools<\/a> to identify bloated themes. Explore the developer tool&#8217;s network section to see the current processes. Then, identify and remove any bloated plugins or themes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/chrome-devtools-js-inspection.jpg\"><img decoding=\"async\" width=\"1024\" height=\"213\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/chrome-devtools-js-inspection-1024x213.jpg\" alt=\"chrome dev tools js inspection \" class=\"wp-image-9249\" style=\"width:977px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/chrome-devtools-js-inspection-1024x213.jpg 1024w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/chrome-devtools-js-inspection-300x63.jpg 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/chrome-devtools-js-inspection-768x160.jpg 768w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/chrome-devtools-js-inspection.jpg 1440w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>jQuery monitoring tool<\/strong><\/p>\n\n\n\n<p>The jQuery monitoring tool is another tool you can use to detect bloated themes and plugins. It displays all of the active jQuery files on your site. Remove any unused plugins or themes that use jQuery.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Unload JavaScript on Specific Pages<\/h3>\n\n\n\n<p>JavaScript creates sliders, forms, and social share buttons. It enhances interactivity and dynamic features. But, lots of JavaScript code slows website loading.<\/p>\n\n\n\n<p>Say you use social share buttons only on your WordPress posts. But, the JavaScript codes load on both posts and pages. Thus, it slows things down.<\/p>\n\n\n\n<p>If you unload JavaScript files on specific pages, you can cut the time to run JavaScript almost in half.<\/p>\n\n\n\n<p>You can use either Perfmatters or Asset Cleanup plugins to unload JavaScripts on specific pages,<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Unload JavaScript Using Perfmatters<\/strong><\/p>\n\n\n\n<p>You<strong>&nbsp;<\/strong>can use&nbsp;<a href=\"https:\/\/perfmatters.io\/docs\/disable-scripts-per-post-page\/?ref=146\" target=\"_blank\" rel=\"noreferrer noopener\">Perftmatter Script Manager<\/a>&nbsp;to turn off JavaScript\/CSS files on the pages you don&#8217;t want to load.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> Allow&nbsp;<a href=\"https:\/\/perfmatters.io\/docs\/testing-mode\/\" target=\"_blank\" rel=\"noreferrer noopener\">Test Mode<\/a>&nbsp;in settings to avoid site crashes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/script-manager-settings-perfmatters.png.webp\"><img decoding=\"async\" width=\"1024\" height=\"260\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/script-manager-settings-perfmatters.png.webp\" alt=\"script manager settings perfmatters activate test mode\" class=\"wp-image-9263\" style=\"width:909px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/script-manager-settings-perfmatters.png.webp 1024w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/script-manager-settings-perfmatters.png-300x76.webp 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/script-manager-settings-perfmatters.png-768x195.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 2<\/strong>: Visit the script manager to see all page-loading JavaScript files.<\/p>\n\n\n\n<p><strong>Step 3:<\/strong> Select and&nbsp;<strong>turn off<\/strong>&nbsp;the files you don&#8217;t want to load.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/Disable-social-sharing-plugins-perfmatters.webp\"><img decoding=\"async\" width=\"775\" height=\"306\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/Disable-social-sharing-plugins-perfmatters.webp\" alt=\"Disable social sharing plugins perfmatters\" class=\"wp-image-9262\" style=\"width:909px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/Disable-social-sharing-plugins-perfmatters.webp 775w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/Disable-social-sharing-plugins-perfmatters-300x118.webp 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/Disable-social-sharing-plugins-perfmatters-768x303.webp 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading has-medium-font-size\"><strong>Unload JavaScript Using Asset Cleanup\u00a0<\/strong><\/h3>\n\n\n\n<p>The&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/wp-asset-clean-up\/\" target=\"_blank\" rel=\"noreferrer noopener\">Asset CleanUp<\/a>&nbsp;plugin can unload JavaScript files on pages. The plugin will show all your pages. Once selected, you&#8217;ll see all the JavaScript and CSS files on that page.<\/p>\n\n\n\n<p>To do that,&nbsp;<\/p>\n\n\n\n<p><strong>Step 1:<\/strong> First, install and activate it.<\/p>\n\n\n\n<p><strong>Step 2: <\/strong> Navigate to the&nbsp;<strong>Asset CleanUp<\/strong>&nbsp;from your admin dashboard and open the<strong> CSS\/JS Load Manager<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/unload-javascript-to-reduce-javascript-execution-time.jpg\"><img decoding=\"async\" width=\"2502\" height=\"1229\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/unload-javascript-to-reduce-javascript-execution-time.jpg\" alt=\"unload javascript t reduce javascript execution time\" class=\"wp-image-9199\" style=\"width:907px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/unload-javascript-to-reduce-javascript-execution-time.jpg 2502w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/unload-javascript-to-reduce-javascript-execution-time-300x147.jpg 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/unload-javascript-to-reduce-javascript-execution-time-1024x503.jpg 1024w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/unload-javascript-to-reduce-javascript-execution-time-768x377.jpg 768w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/unload-javascript-to-reduce-javascript-execution-time-1536x754.jpg 1536w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/unload-javascript-to-reduce-javascript-execution-time-2048x1006.jpg 2048w\" sizes=\"(max-width: 2502px) 100vw, 2502px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Step 3:<\/strong> Click on&nbsp;<strong>pages<\/strong>&nbsp;and type in&nbsp;<strong>page<\/strong>.&nbsp;<\/p>\n\n\n\n<p><strong>Step 4:<\/strong> Now, select the pages you want to exclude. <\/p>\n\n\n\n<p>From here, you can unload a specific JavaScript file on that page, your entire site, or all the pages. You can unload JavaScript files from contact form plugins on selected pages. For faster results, empty it on all pages except the contact page.<\/p>\n\n\n\n<p>If your website has many similar issues and you want detailed solutions, use Perfmatters. But if you are on a budget, you can use the Asset Cleanup plugin since it offers a free version.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Use a WordPress Accelerator Plugin<\/h3>\n\n\n\n<p>You must perform various tasks such as minifying JavaScript, deferring JavaScript, and more to reduce JavaScript execution time.<\/p>\n\n\n\n<p>Complex tasks like these require technical skills and execution effort. If something goes wrong, it could break your site!<\/p>\n\n\n\n<p>The best and easiest solution is to install a WordPress plugin that handles cache warm-up, page caching, JS\/CS minification, Critical CSS, Optimization, and more.&nbsp;<\/p>\n\n\n\n<p>So, your website will be safe in the hands of WordPress accelerator plugins while you can Netflix and chill!<\/p>\n\n\n\n<p>So, here are some of the top WordPress plugins you can use to speed up JavaScript and WordPress loading,&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table has-small-font-size\"><table><thead><tr><th><strong>Plugin<\/strong>\\Features<\/th><th><strong>Cache Warm-Up<\/strong><\/th><th><strong>Page Caching<\/strong><\/th><th><strong>JS\/CSS Minification<\/strong><\/th><th><strong>Critical CSS<\/strong><\/th><th><strong>Overall Optimization<\/strong><\/th><th><strong>CDN Integration<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong><a href=\"https:\/\/fastpixel.io\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/fastpixel.io\/\" rel=\"noreferrer noopener\">Fastpixel.io<\/a><\/strong><\/td><td>Yes\u200b\u200b<\/td><td>Yes\u200b\u200b<\/td><td>Yes\u200b\u200b<\/td><td>Yes\u200b\u200b<\/td><td>Image optimization and core web vitals <\/td><td>Yes (Built in)<\/td><\/tr><tr><td><strong><a href=\"https:\/\/wordpress.org\/plugins\/autoptimize\/\" target=\"_blank\" rel=\"noreferrer noopener\">Autoptimize<\/a><\/strong><\/td><td>No<\/td><td>No (requires additional plugin)<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes (focus on script optimization)<\/td><td>No<\/td><\/tr><tr><td><strong><a href=\"https:\/\/wp-rocket.me\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/wp-rocket.me\/\" rel=\"noreferrer noopener\">WP Rocket<\/a><\/strong><\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes (comprehensive)<\/td><td>Yes<\/td><\/tr><tr><td><strong><a href=\"https:\/\/wordpress.org\/plugins\/psn-pagespeed-ninja\/\" target=\"_blank\" rel=\"noreferrer noopener\">Page Speed Ninja<\/a><\/strong><\/td><td>No<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes (focus on page speed)<\/td><td>No<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">WordPress Accelerator Plugins<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Use Time Delay JavaScript to Reduce JavaScript Execution Time<\/h3>\n\n\n\n<p>Delaying JavaScript execution entails intentionally introducing a time delay before the code runs. This delay doesn&#8217;t directly affect the execution time of the JavaScript code.<\/p>\n\n\n\n<p>To delay JavaScript execution, you can use the <a href=\"https:\/\/wordpress.org\/plugins\/wp-meteor\/\" target=\"_blank\" rel=\"noopener\">WP Meteor<\/a> plugin. To slow JavaScript using the WP Meteor plugin, first install and activate this plugin. Then go to the WordPress dashboard, navigate to Settings, and then WP Meteor.<\/p>\n\n\n\n<p>You can use various ways to delay the JavaScript execution.<\/p>\n\n\n\n<p><strong>Time-based:<\/strong> You may delay the JavaScript execution for a specified period. For instance, you could load JavaScript files 10 seconds after the initial load.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/time-delay-javascript-wp-meteor.jpg\"><img decoding=\"async\" width=\"1000\" height=\"450\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/time-delay-javascript-wp-meteor.jpg\" alt=\"time delay javascript wp meteor\" class=\"wp-image-9205\" style=\"width:854px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/time-delay-javascript-wp-meteor.jpg 1000w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/time-delay-javascript-wp-meteor-300x135.jpg 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/time-delay-javascript-wp-meteor-768x346.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Interaction based:<\/strong> You can also delay JavaScript execution until a user performs a specific action. This action could include scrolling or clicking on the page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/interaction-based-time-delay-savascript-wp-meteor.jpg\"><img decoding=\"async\" width=\"1000\" height=\"422\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2023\/12\/interaction-based-time-delay-savascript-wp-meteor.jpg\" alt=\"interaction based time delay savascript wp meteor\" class=\"wp-image-9207\" style=\"width:850px;height:auto\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/interaction-based-time-delay-savascript-wp-meteor.jpg 1000w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/interaction-based-time-delay-savascript-wp-meteor-300x127.jpg 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2023\/12\/interaction-based-time-delay-savascript-wp-meteor-768x324.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p>Afterward, configure the JavaScript execution delay. You can set the delay for one to two seconds or until the first interaction. Finally, click on Save Changes to apply the settings.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Minify JavaScript<\/h3>\n\n\n\n<p>You can significantly reduce JavaScript execution time by minifying it. The principal reduction is in JavaScript file size.<\/p>\n\n\n\n<p>Minification involves removing unnecessary characters from JavaScript code. These characters include white spaces, comments, and line breaks.<\/p>\n\n\n\n<p>However, be cautious because JavaScript minification requires technical expertise, and getting it wrong can cause your website to crash. To be on the safe side, you can look towards <a href=\"https:\/\/www.minifier.org\/\" data-type=\"link\" data-id=\"https:\/\/www.minifier.org\/\" target=\"_blank\" rel=\"noopener\">JavaScript Minifier<\/a> to automate the process.<\/p>\n\n\n\n<p>You can use these top plugins to minify JavaScript without the stress and burden of technical expertise,<\/p>\n\n\n\n<figure class=\"wp-block-table has-small-font-size\"><table><thead><tr><th>Plugins\\Features<\/th><th>JavaScript Minification<\/th><th>CSS Minification<\/th><th>HTML Minification<\/th><th>Defer JavaScript<\/th><th>Control Individual Scripts\/Styles<\/th><\/tr><\/thead><tbody><tr><td><a href=\"https:\/\/wordpress.org\/plugins\/fast-velocity-minify\/\" target=\"_blank\" rel=\"noreferrer noopener\">Fast Velocity Minify<\/a><\/td><td>Yes<\/td><td>Yes<\/td><td>No<\/td><td>Yes<\/td><td>Limited<\/td><\/tr><tr><td><a href=\"https:\/\/fastpixel.io\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/fastpixel.io\/\" rel=\"noreferrer noopener\">Fastpixel.io<\/a><\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Not specified<\/td><td>No<\/td><\/tr><tr><td><a href=\"https:\/\/wordpress.org\/plugins\/wp-asset-clean-up\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/wp-asset-clean-up\/\" rel=\"noreferrer noopener\">Asset CleanUp<\/a><\/td><td>Yes<\/td><td>Yes<\/td><td>No<\/td><td>Selective<\/td><td>Extensive<\/td><\/tr><tr><td><a href=\"https:\/\/wordpress.org\/plugins\/wp-super-minify\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/wp-super-minify\/\" rel=\"noreferrer noopener\">WP Super Minify<\/a><\/td><td>Yes<\/td><td>Yes<\/td><td>No<\/td><td>No<\/td><td>Limited<\/td><\/tr><tr><td><a href=\"https:\/\/wordpress.org\/plugins\/hummingbird-performance\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/hummingbird-performance\/\" rel=\"noreferrer noopener\">Hummingbird<\/a><\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Yes<\/td><td>Extensive<br><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">JavaScript Minification Plugins<\/figcaption><\/figure>\n\n\n\n<p>If you want to learn more about JavaScript minification and how to use it effectively, check out this expert article on <a href=\"https:\/\/kinsta.com\/blog\/minify-javascript\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/kinsta.com\/blog\/minify-javascript\/\" rel=\"noreferrer noopener\">Minifying JavaScript<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>Learning how time delay JavaScript optimizes WordPress sites shows that JavaScript execution time can significantly impact website performance.<\/p>\n\n\n\n<p>But, optimizing JavaScript execution in WordPress is like calibrating a watch. To ensure a smooth performance, ensure each dial enters the stage correctly.<\/p>\n\n\n\n<p>These Javascript execution time reduction strategies can boost your website&#8217;s speed, responsiveness, and user experience.<\/p>\n\n\n\n<p>Remember, a faster site is about giving your audience a smooth and efficient browsing experience, not just better metrics.<\/p>\n\n\n\n<div class=\"wp-block-group has-border-color has-palette-color-4-border-color has-palette-color-6-background-color has-background is-vertical is-content-justification-left is-layout-flex wp-container-core-group-is-layout-e21fc307 wp-block-group-is-layout-flex\" style=\"border-width:1px;border-radius:20px;margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60);padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)\">\n<h3 class=\"wp-block-heading\" id=\"cta-heading\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\">Reduce JavaScript execution using FastPixel!<\/h3>\n\n\n\n<p>Using a WordPress accelerator to minify JavaScript and improve peformance.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/fastpixel.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">Get Started<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1732121539517\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What does reduce JavaScript execution time mean?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Reducing JavaScript execution time means making the code run faster by optimizing how much work the browser has to do. This can involve cutting down on heavy scripts, using efficient code, and loading only what&#8217;s needed to keep the page quick and smooth.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732121542258\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How to improve JavaScript execution time?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To improve JavaScript execution time, minimize your code, get rid of unused scripts, and break tasks into smaller chunks. Lazy load stuff that\u2019s not immediately needed and use efficient coding practices to keep things running fast.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732121544748\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How to reduce scripting time JavaScript?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To improve JavaScript execution time, focus on minifying the code and removing unused scripts. Also, lazy load resources that aren\u2019t needed right away and write efficient, clean code.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732121547118\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How to hold JavaScript execution for some time?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To hold WordPress JavaScript execution, you can use <code>setTimeout()<\/code> or <code>setInterval()<\/code> within your theme&#8217;s or plugin&#8217;s custom JavaScript. For example, you can add delays for actions like showing popups or deferring script loading.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732121550892\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is the time complexity of reduce JavaScript?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>The time complexity of reducing JavaScript (such as using the <code>Array.prototype.reduce()<\/code> method) depends on the operation inside the reducer function. In general, the time complexity is O(n), where n is the number of elements in the array. This is because the method iterates over each element once, performing the operation specified in the callback function.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732121554185\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Why use reduce JavaScript?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>The <code>reduce()<\/code> method in JavaScript is useful for simplifying complex array operations, like summing values, flattening arrays, or accumulating results into a single value. It makes your code more concise and readable, as it handles looping and aggregation in one step, instead of using a separate loop or multiple lines of code.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1732122118509\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How to reduce JavaScript execution time in WordPress?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To reduce JavaScript execution time WordPress, you can use a plugin like <a href=\"https:\/\/fastpixel.io\/\" data-type=\"link\" data-id=\"https:\/\/fastpixel.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">FastPixel<\/a> to minify your JavaScript files, which will make them smaller and faster to load. It\u2019s also helpful to defer non-essential scripts, making sure that only the critical scripts load first. Removing or disabling unnecessary plugins and optimizing your theme\u2019s code can cut down on extra JavaScript. Lazy loading images and scripts that aren\u2019t immediately needed can also speed up your site.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Have you ever clicked on a website and seen some parts of the screen loading quickly and the rest taking forever? Often, the culprit behind these sluggish experiences is inefficient JavaScript execution time, particularly in WordPress sites. You can adjust the JavaScript execution time using different methods, such as WordPress plugins or JavaScript timers. You [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":11881,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-8840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-performance"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/8840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/comments?post=8840"}],"version-history":[{"count":82,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/8840\/revisions"}],"predecessor-version":[{"id":11835,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/8840\/revisions\/11835"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/media\/11881"}],"wp:attachment":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/media?parent=8840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/categories?post=8840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/tags?post=8840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}