{"id":10725,"date":"2026-05-19T17:32:25","date_gmt":"2026-05-19T09:32:25","guid":{"rendered":"https:\/\/aeosub.com\/lm-page-assets-control\/"},"modified":"2026-05-19T17:32:25","modified_gmt":"2026-05-19T09:32:25","slug":"lm-page-assets-control","status":"publish","type":"post","link":"https:\/\/aeosub.com\/zh\/lm-page-assets-control\/","title":{"rendered":"LM Page Assets Control"},"content":{"rendered":"<div class=\"post-img\" style=\"margin-bottom: 25px\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/lm-page-assets-control\/assets\/banner-1544x500.png?rev=3536930\" alt=\"LM Page Assets Control\" style=\"width: 100%;height: auto;border-radius: 12px\"><\/div>\n<div class=\"plugin-info-card\" style=\"border: 1px solid #e2e8f0;border-radius: 10px;overflow: hidden;margin-bottom: 30px;font-family: -apple-system, system-ui, sans-serif;background: #fff\">\n<table style=\"width: 100%;border-collapse: collapse;font-size: 14px\">\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 15px 20px;text-align: left;width: 35%;color: #4a5568;background: #fcfcfc\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/lm-page-assets-control\/assets\/icon-256x256.png?rev=3536930\" style=\"width: 40px;height: 40px;border-radius: 6px;margin-right: 12px;vertical-align: middle\"> Developer<\/th>\n<td style=\"padding: 15px 20px;font-weight: 500\"><a href=\"https:\/\/profiles.wordpress.org\/lmdesigners\/\" target=\"_blank\" rel=\"noopener\">LM Designers<\/a><\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Version<\/th>\n<td style=\"padding: 12px 20px\">v1.0.0<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Active Installs<\/th>\n<td style=\"padding: 12px 20px\">0 +<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Requires \/ Tested<\/th>\n<td style=\"padding: 12px 20px\">5.0 \/ 6.9.4<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Last Updated<\/th>\n<td style=\"padding: 12px 20px\">2026-05-19 9:09am GMT<\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Official Link<\/th>\n<td style=\"padding: 12px 20px\"><a href=\"https:\/\/wordpress.org\/plugins\/lm-page-assets-control\/\" target=\"_blank\" style=\"text-decoration: none;color: #4a3bca;font-weight: bold\" rel=\"noopener\">View Details \u2192<\/a><\/td>\n<\/tr>\n<\/table><\/div>\n<div class=\"plugin-short-desc\" style=\"margin: 20px 0;padding: 12px 15px;background: #f9fafb;border-left: 4px solid #4a3bca;border-radius: 6px;font-style: italic;color: #4a5568\">Block specific CSS and JS files from loading on pages where they are not needed. Improve page speed by preventing unnecessary assets from loading.<\/div>\n<p><strong>LM Page Assets Control<\/strong> gives you full control over which CSS and JavaScript files load on each page of your WordPress site. Plugins often load their assets globally \u2014 on every single page \u2014 even when they are only needed on one or two. This causes unnecessary bloat, slower load times, and lower PageSpeed scores.<\/p>\n<p>With LM Page Assets Control, you can create simple rules to block any CSS or JS file from loading on specific pages, page types, or even everywhere except where it is needed.<\/p>\n<h4>How It Works<\/h4>\n<p>You provide a partial URL of the asset you want to block (for example <code>woocommerce.css<\/code> or <code>elementor\/assets\/css<\/code>) and choose where to block it \u2014 on the homepage, a specific page, all single posts, and more. The plugin then dequeues and deregisters the matching assets on the frontend, preventing them from loading entirely.<\/p>\n<h4>Key Features<\/h4>\n<ul>\n<li><strong>Partial URL matching<\/strong> \u2014 You don&#8217;t need the full URL. Just enter any part of the filename or path and all matching assets will be blocked.<\/li>\n<li><strong>14 built-in page conditions<\/strong> \u2014 Block assets everywhere, on the front page, specific pages (by slug or ID), single posts, archive pages, blog index, and all major WooCommerce contexts (Shop, Product, Cart, Checkout).<\/li>\n<li><strong>URL-based conditions<\/strong> \u2014 Block assets on any URL that contains or does not contain a specific string.<\/li>\n<li><strong>Enable \/ Disable rules<\/strong> \u2014 Toggle any rule on or off without deleting it.<\/li>\n<li><strong>Named rules<\/strong> \u2014 Give each rule a descriptive name so you can manage them easily.<\/li>\n<li><strong>Multiple rules<\/strong> \u2014 Add as many blocking rules as you need.<\/li>\n<li><strong>Zero configuration<\/strong> \u2014 No API keys, no external services, no bloat. Just install and use.<\/li>\n<li><strong>Clean admin UI<\/strong> \u2014 A simple, modern interface under Plugins <span aria-hidden=\"true\" class=\"wp-exclude-emoji\">\u2192<\/span> LM Page Assets Control.<\/li>\n<li><strong>WooCommerce compatible<\/strong> \u2014 Includes dedicated conditions for Shop, Product, Cart, and Checkout pages.<\/li>\n<\/ul>\n<h4>Available Page Conditions<\/h4>\n<ul>\n<li>Everywhere (all pages)<\/li>\n<li>Home \/ Front page<\/li>\n<li>Everywhere except home<\/li>\n<li>Blog index page<\/li>\n<li>Single posts<\/li>\n<li>Specific page (by slug or ID \u2014 supports multiple, comma-separated)<\/li>\n<li>Archive pages<\/li>\n<li>WooCommerce \u2014 Shop page<\/li>\n<li>WooCommerce \u2014 Everywhere except Shop<\/li>\n<li>WooCommerce \u2014 Single product page<\/li>\n<li>WooCommerce \u2014 Cart page<\/li>\n<li>WooCommerce \u2014 Checkout page<\/li>\n<li>URL contains a specific string<\/li>\n<li>URL does NOT contain a specific string<\/li>\n<\/ul>\n<h4>Common Use Cases<\/h4>\n<ul>\n<li>Block WooCommerce styles on non-shop pages<\/li>\n<li>Prevent a contact form plugin from loading its CSS\/JS on every page<\/li>\n<li>Stop a slider plugin from loading scripts on pages that have no slider<\/li>\n<li>Remove Elementor assets from pages built with a different builder<\/li>\n<li>Block any third-party plugin asset that is causing PageSpeed issues<\/li>\n<\/ul>\n<h4>\u26a0\ufe0f Important Notice<\/h4>\n<p>This plugin directly controls which CSS and JavaScript files are loaded on your website. Blocking the wrong asset can break your site&#8217;s appearance, functionality, or checkout process. <strong>Always test changes on a staging environment first and keep a backup ready.<\/strong> If you are not confident about WordPress asset management, consult a developer before making changes.<\/p>\n<h4>Who Is This For?<\/h4>\n<p>This plugin is intended for developers, advanced WordPress users, and site owners who are familiar with browser developer tools and WordPress asset management. It is not a &#8220;set and forget&#8221; solution \u2014 it requires you to identify the assets you want to block and verify that blocking them does not cause issues.<\/p>","protected":false},"excerpt":{"rendered":"<p>Block specific CSS and JS files from loading on pages where they are not needed. Improve page speed by preventing unnecessary assets from loading.<\/p>","protected":false},"author":1,"featured_media":9317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[252],"tags":[1334,1335,858,722,792,555],"class_list":["post-10725","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-trends","tag-asset-management","tag-css-javascript","tag-page-speed","tag-performance","tag-speed","tag-wordpress-plugin"],"_links":{"self":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/comments?post=10725"}],"version-history":[{"count":0,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10725\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media\/9317"}],"wp:attachment":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media?parent=10725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/categories?post=10725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/tags?post=10725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}