{"id":12770,"date":"2026-09-07T23:44:35","date_gmt":"2026-09-08T03:44:35","guid":{"rendered":"https:\/\/sebastien-laframboise.com\/?p=12770"},"modified":"2026-09-07T23:44:35","modified_gmt":"2026-09-08T03:44:35","slug":"reduire-javascript-inutile-wordpress","status":"publish","type":"post","link":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/","title":{"rendered":"Reduce unnecessary JavaScript loaded by WordPress"},"content":{"rendered":"<p>To optimize JavaScript in WordPress, don\u2019t start by randomly disabling files. A page can load scripts for a form, a carousel, a map, a consent banner or an analytics plugin. Many of those functions aren\u2019t needed on every page.<\/p>\n<p>The right approach is to look at what actually loads, identify the plugin or theme responsible, then remove or defer only the nonessential scripts. That way you preserve useful features while reducing work for the browser.<\/p>\n<h2>Why target scripts instead of the whole site<\/h2>\n<p>A JavaScript file costs more than just download time. The browser also has to parse and execute it. When a regular script appears in the document without the attribute <code>defer<\/code> nor <code>async<\/code>, it can block HTML parsing while it loads and runs. The documentation on <a href=\"https:\/\/web.dev\/learn\/performance\/optimize-resource-loading?hl=en\">web.dev about resource loading<\/a> explains this difference between blocking, async and deferred scripts.<\/p>\n<p>The issue isn\u2019t necessarily an entire plugin. For example, a forms plugin may be needed on your Contact page, but its script doesn\u2019t have to be present on every blog post. Similarly, a gallery script can be useful on some listings or service pages without being loaded across the whole site.<\/p>\n<p>This method complements plugin analysis, it doesn\u2019t replace it. If you first need to determine which tool generates a resource, also see <a href=\"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/detect-wordpress-plugins-that-are-slowing-down-your-site\/\">how to find WordPress plugins that slow down your site<\/a>. Here, the goal is more specific: decide whether a JavaScript file should be present on a given page.<\/p>\n<h2>Inventory the scripts loaded by a page<\/h2>\n<p>Choose a representative page, such as the homepage, a post and a contact page. Then open your browser\u2019s developer tools and check the Network tab. Reload the page, then filter requests by <code>JS<\/code>.<\/p>\n<p>For each file, note its URL, approximate size and the domain hosting it. The file path often gives a first clue. A URL containing <code>\/wp-content\/plugins\/plugin-name\/<\/code> usually comes from a plugin. A path under <code>\/wp-content\/themes\/theme-name\/<\/code> points instead to the theme or a child theme.<\/p>\n<h3>Ask the right questions for each script<\/h3>\n<ul>\n<li>What visible feature does this file support on this page?<\/li>\n<li>Is this feature useful to the reader at this moment?<\/li>\n<li>Does the same file load on pages where this feature doesn\u2019t exist?<\/li>\n<li>Does the file belong to your theme, a plugin, or an external service?<\/li>\n<li>Does any other script depend on it?<\/li>\n<\/ul>\n<p>Don\u2019t judge a file solely by its name or size. A small script can be essential for the mobile menu, the cart, or a form. Conversely, several small scripts together can create a lot of work on load.<\/p>\n<p>Focus first on the pages that matter to your visitors. If your effort is part of a broader improvement, the article <a href=\"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/make-wordpress-site-faster\/\">WordPress Speed: How to Make Your Site Faster and More Enjoyable<\/a> helps place this work among the other performance factors.<\/p>\n<h2>Linking a file to its WordPress handle<\/h2>\n<p>In WordPress, a script is normally added with a unique identifier, called a <em>handle<\/em>. . <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_enqueue_script\/\">The function wp_enqueue_script()<\/a> is used to register and enqueue those scripts while declaring their dependencies. This identifier is important because WordPress doesn\u2019t remove a script by its URL: it removes it by its handle.<\/p>\n<p>To find this handle, check the settings or documentation of the relevant plugin. You can also search the child theme or plugin files, in a test environment, for calls to <code>The function wp_enqueue_script()<\/code>. .<\/p>\n<p>Keep a short decision sheet: observed URL, handle, pages where the script is required, pages where it isn\u2019t, and the results of your tests. This record becomes valuable when a theme or plugin is updated.<\/p>\n<h2>Disable a script only where it\u2019s not needed<\/h2>\n<p>Conditional disabling is often safer than global removal. WordPress provides <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_dequeue_script\/\">wp_dequeue_script()<\/a> to remove a script that has already been added to the queue. However, you must use the correct handle and run your code after the plugin or theme has added the script.<\/p>\n<p>Here is a deliberately generic example to place in a child theme or a custom plugin. Replace <code>my-form-script<\/code> with the confirmed handle for your installation. Also adjust the condition to match your actual pages.<\/p>\n<pre><code>add_action( 'wp_enqueue_scripts', function() {\n    if ( ! is_page( 'contact' ) ) {\n        wp_dequeue_script( 'mon-script-formulaire' );\n    }\n}, 100 );<\/code><\/pre>\n<p>In this example, the form script remains loaded on the Contact page, but WordPress attempts to remove it elsewhere. Do not add this code to a third\u2011party plugin\u2019s files: an update could overwrite it. Prefer a child theme or a plugin designed for your customizations.<\/p>\n<h3>Respect dependencies before removing a handle<\/h3>\n<p>A script can serve as the basis for another file. Therefore, removing a shared library or handle can break a menu, a modal, a date picker, or part of the checkout. First remove scripts that are specific to a clearly limited function, then check every interaction on the page.<\/p>\n<p>Before making any code changes, create a recoverable copy. You can follow this method to <a href=\"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/backups-and-maintenance\/create-a-wordpress-backup-before-a-risky-change\/\">create a WordPress backup before a risky change<\/a>, then run your tests on a staging site when possible.<\/p>\n<h2>Use defer without changing the script order<\/h2>\n<p>When a script is still needed but does not need to run during document construction, <code>defer<\/code> can be a good option. Deferred scripts download during HTML parsing and then run when parsing is complete. They also preserve their order in the document, unlike <code>async<\/code>.<\/p>\n<p>WordPress allows declaring a <code>defer<\/code> or <code>async<\/code> tag manually in <code>The function wp_enqueue_script()<\/code>. strategy. Its documentation states that WordPress accounts for the dependency tree and applies the most appropriate allowed strategy. This prevents the core from imposing a more restrictive strategy that could break dependencies.<\/p>\n<pre><code>wp_enqueue_script(\n    'theme-interactions',\n    get_stylesheet_directory_uri() . '\/assets\/js\/interactions.js',\n    array(),\n    '1.0.0',\n    array(\n        'strategy'  =&gt; 'defer',\n        'in_footer' =&gt; true,\n    )\n);<\/code><\/pre>\n<p>Do not add <code>async<\/code> to a script that depends on jQuery, another file, or a specific document element. An async script can run in an unpredictable order. Reserve it for truly independent files, after reading the vendor documentation and testing behavior on the devices your visitors use.<\/p>\n<h2>Check after each change<\/h2>\n<p>Handle one script or one rule at a time. Then clear any applicable caches, open a private window, and verify the modified page. Also test the mobile version, as many themes enable a different menu and behaviors there.<\/p>\n<ul>\n<li>Navigate through menus and submenus.<\/li>\n<li>Submit any forms on the page.<\/li>\n<li>Open accordions, galleries, modals, and videos.<\/li>\n<li>Check the cart, checkout, and variations if your site uses WooCommerce.<\/li>\n<li>Check the browser console for JavaScript errors.<\/li>\n<\/ul>\n<p>Finally, compare load behavior before and after, page by page. A useful reduction removes an unneeded script or defers noncritical work without removing an expected interaction. This discipline helps you optimize WordPress JavaScript sustainably, even as your plugins and theme evolve.<\/p>","protected":false},"excerpt":{"rendered":"<p>R\u00e9duisez le JavaScript inutile sur vos pages WordPress en rep\u00e9rant les scripts charg\u00e9s, en retrouvant leur extension ou th\u00e8me d\u2019origine, puis en les d\u00e9sactivant ou en les diff\u00e9rant sans casser les d\u00e9pendances.<\/p>","protected":false},"author":1,"featured_media":12771,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[143],"tags":[],"class_list":["post-12770","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-performance-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Reduce Unnecessary JavaScript Loaded by WordPress - WordPress Programmer, WordPress Site Maintenance and Repair<\/title>\n<meta name=\"description\" content=\"Learn how to optimize WordPress JavaScript: identify unnecessary scripts, disable them per page, and use defer without causing conflicts.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reduce Unnecessary JavaScript Loaded by WordPress - WordPress Programmer, WordPress Site Maintenance and Repair\" \/>\n<meta property=\"og:description\" content=\"Learn how to optimize WordPress JavaScript: identify unnecessary scripts, disable them per page, and use defer without causing conflicts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Programmeur WordPress, Entretien et R\u00e9paration de Sites WordPress\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-08T03:44:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2026\/09\/reduire-javascript-inutile-wordpress.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"S\u00e9bastien Laframboise\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"S\u00e9bastien Laframboise\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/\"},\"author\":{\"name\":\"S\u00e9bastien Laframboise\",\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/#\\\/schema\\\/person\\\/aec5cb8347829aad73c93350b1e761c4\"},\"headline\":\"Reduce unnecessary JavaScript loaded by WordPress\",\"datePublished\":\"2026-09-08T03:44:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/\"},\"wordCount\":1308,\"publisher\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/#\\\/schema\\\/person\\\/aec5cb8347829aad73c93350b1e761c4\"},\"image\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sebastienlaframboise.com\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/reduire-javascript-inutile-wordpress.webp\",\"articleSection\":[\"Performance WordPress\"],\"inLanguage\":\"en-CA\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/\",\"url\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/\",\"name\":\"Reduce Unnecessary JavaScript Loaded by WordPress - WordPress Programmer, WordPress Site Maintenance and Repair\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/sebastienlaframboise.com\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/reduire-javascript-inutile-wordpress.webp\",\"datePublished\":\"2026-09-08T03:44:35+00:00\",\"description\":\"Learn how to optimize WordPress JavaScript: identify unnecessary scripts, disable them per page, and use defer without causing conflicts.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sebastienlaframboise.com\\\/conseils-wordpress\\\/performance-wordpress\\\/reduire-javascript-inutile-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-CA\",\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/sebastienlaframboise.com\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/reduire-javascript-inutile-wordpress.webp\",\"contentUrl\":\"https:\\\/\\\/sebastienlaframboise.com\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/reduire-javascript-inutile-wordpress.webp\",\"width\":1536,\"height\":1024,\"caption\":\"Identify, remove, and defer scripts that aren\u2019t needed on each page.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/wordpress-advice\\\/wordpress-performance\\\/reduce-unnecessary-javascript-loaded-by-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reduce unnecessary JavaScript loaded by WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/\",\"name\":\"WordPress Programmer, WordPress Site Maintenance and Repair\",\"description\":\"Your freelance programmer for all your WordPress maintenance and development needs.\",\"publisher\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/#\\\/schema\\\/person\\\/aec5cb8347829aad73c93350b1e761c4\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sebastienlaframboise.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-CA\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/en\\\/#\\\/schema\\\/person\\\/aec5cb8347829aad73c93350b1e761c4\",\"name\":\"S\u00e9bastien Laframboise\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-CA\",\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/programmeur-wordpress-montreal-1.webp\",\"url\":\"https:\\\/\\\/sebastienlaframboise.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/programmeur-wordpress-montreal-1.webp\",\"contentUrl\":\"https:\\\/\\\/sebastienlaframboise.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/programmeur-wordpress-montreal-1.webp\",\"width\":200,\"height\":200,\"caption\":\"S\u00e9bastien Laframboise\"},\"logo\":{\"@id\":\"https:\\\/\\\/sebastienlaframboise.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/programmeur-wordpress-montreal-1.webp\"},\"sameAs\":[\"https:\\\/\\\/sebastienlaframboise.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reduce Unnecessary JavaScript Loaded by WordPress - WordPress Programmer, WordPress Site Maintenance and Repair","description":"Learn how to optimize WordPress JavaScript: identify unnecessary scripts, disable them per page, and use defer without causing conflicts.","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:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"Reduce Unnecessary JavaScript Loaded by WordPress - WordPress Programmer, WordPress Site Maintenance and Repair","og_description":"Learn how to optimize WordPress JavaScript: identify unnecessary scripts, disable them per page, and use defer without causing conflicts.","og_url":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/","og_site_name":"Programmeur WordPress, Entretien et R\u00e9paration de Sites WordPress","article_published_time":"2026-09-08T03:44:35+00:00","og_image":[{"width":1536,"height":1024,"url":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2026\/09\/reduire-javascript-inutile-wordpress.webp","type":"image\/webp"}],"author":"S\u00e9bastien Laframboise","twitter_card":"summary_large_image","twitter_misc":{"Written by":"S\u00e9bastien Laframboise","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/#article","isPartOf":{"@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/"},"author":{"name":"S\u00e9bastien Laframboise","@id":"https:\/\/sebastienlaframboise.com\/en\/#\/schema\/person\/aec5cb8347829aad73c93350b1e761c4"},"headline":"Reduce unnecessary JavaScript loaded by WordPress","datePublished":"2026-09-08T03:44:35+00:00","mainEntityOfPage":{"@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/"},"wordCount":1308,"publisher":{"@id":"https:\/\/sebastienlaframboise.com\/en\/#\/schema\/person\/aec5cb8347829aad73c93350b1e761c4"},"image":{"@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2026\/09\/reduire-javascript-inutile-wordpress.webp","articleSection":["Performance WordPress"],"inLanguage":"en-CA"},{"@type":"WebPage","@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/","url":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/","name":"Reduce Unnecessary JavaScript Loaded by WordPress - WordPress Programmer, WordPress Site Maintenance and Repair","isPartOf":{"@id":"https:\/\/sebastienlaframboise.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2026\/09\/reduire-javascript-inutile-wordpress.webp","datePublished":"2026-09-08T03:44:35+00:00","description":"Learn how to optimize WordPress JavaScript: identify unnecessary scripts, disable them per page, and use defer without causing conflicts.","breadcrumb":{"@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/#breadcrumb"},"inLanguage":"en-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sebastienlaframboise.com\/conseils-wordpress\/performance-wordpress\/reduire-javascript-inutile-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-CA","@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/#primaryimage","url":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2026\/09\/reduire-javascript-inutile-wordpress.webp","contentUrl":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2026\/09\/reduire-javascript-inutile-wordpress.webp","width":1536,"height":1024,"caption":"Identify, remove, and defer scripts that aren\u2019t needed on each page."},{"@type":"BreadcrumbList","@id":"https:\/\/sebastienlaframboise.com\/en\/wordpress-advice\/wordpress-performance\/reduce-unnecessary-javascript-loaded-by-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sebastienlaframboise.com\/en\/"},{"@type":"ListItem","position":2,"name":"Reduce unnecessary JavaScript loaded by WordPress"}]},{"@type":"WebSite","@id":"https:\/\/sebastienlaframboise.com\/en\/#website","url":"https:\/\/sebastienlaframboise.com\/en\/","name":"WordPress developer, WordPress site maintenance and repair","description":"Your freelance programmer for all your WordPress maintenance and development needs.","publisher":{"@id":"https:\/\/sebastienlaframboise.com\/en\/#\/schema\/person\/aec5cb8347829aad73c93350b1e761c4"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sebastienlaframboise.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-CA"},{"@type":["Person","Organization"],"@id":"https:\/\/sebastienlaframboise.com\/en\/#\/schema\/person\/aec5cb8347829aad73c93350b1e761c4","name":"S\u00e9bastien Laframboise","image":{"@type":"ImageObject","inLanguage":"en-CA","@id":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2022\/12\/programmeur-wordpress-montreal-1.webp","url":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2022\/12\/programmeur-wordpress-montreal-1.webp","contentUrl":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2022\/12\/programmeur-wordpress-montreal-1.webp","width":200,"height":200,"caption":"S\u00e9bastien Laframboise"},"logo":{"@id":"https:\/\/sebastienlaframboise.com\/wp-content\/uploads\/2022\/12\/programmeur-wordpress-montreal-1.webp"},"sameAs":["https:\/\/sebastienlaframboise.com"]}]}},"_links":{"self":[{"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/posts\/12770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/comments?post=12770"}],"version-history":[{"count":1,"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/posts\/12770\/revisions"}],"predecessor-version":[{"id":12772,"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/posts\/12770\/revisions\/12772"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/media\/12771"}],"wp:attachment":[{"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/media?parent=12770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/categories?post=12770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sebastienlaframboise.com\/en\/wp-json\/wp\/v2\/tags?post=12770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}