{"id":293392,"date":"2026-05-19T09:12:20","date_gmt":"2026-05-19T09:12:20","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/lazy-asset-blocker\/"},"modified":"2026-05-19T09:09:42","modified_gmt":"2026-05-19T09:09:42","slug":"lm-page-assets-control","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/lm-page-assets-control\/","author":23099193,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"6.9.4","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"LM Page Assets Control","header_author":"LM Designers","header_description":"Block specific CSS and JS files from loading on pages where they are not needed. Improves page speed by preventing unnecessary assets from loading. Use with caution - incorrect rules may break your site's appearance or functionality.","assets_banners_color":"f3afb1","last_updated":"2026-05-19 09:09:42","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/lmwebdesigners.com\/plugin\/lm-page-assets-control\/","header_author_uri":"https:\/\/lmwebdesigners.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":30,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"lmdesigners","date":"2026-05-19 09:11:50"}},"upgrade_notice":{"1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3536930,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3536930,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3536930,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":3536930,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3536930,"resolution":"1","location":"assets","locale":"","width":825,"height":963},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3536930,"resolution":"2","location":"assets","locale":"","width":1137,"height":672}},"screenshots":{"1":"The main admin panel showing the rule list with the warning notice.","2":"An expanded rule card showing the asset URL field and page condition selector.","3":"WooCommerce-specific conditions available in the condition picker.","4":"Empty state when no rules have been created yet."}},"plugin_section":[],"plugin_tags":[8847,263490,5896,247,794],"plugin_category":[52,54],"plugin_contributors":[263491],"plugin_business_model":[],"class_list":["post-293392","plugin","type-plugin","status-publish","hentry","plugin_tags-asset-management","plugin_tags-css-javascript","plugin_tags-page-speed","plugin_tags-performance","plugin_tags-speed","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-lmdesigners","plugin_committers-lmdesigners"],"banners":{"banner":"https:\/\/ps.w.org\/lm-page-assets-control\/assets\/banner-772x250.jpg?rev=3536930","banner_2x":"https:\/\/ps.w.org\/lm-page-assets-control\/assets\/banner-1544x500.png?rev=3536930","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/lm-page-assets-control\/assets\/icon-128x128.png?rev=3536930","icon_2x":"https:\/\/ps.w.org\/lm-page-assets-control\/assets\/icon-256x256.png?rev=3536930","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/lm-page-assets-control\/assets\/screenshot-1.png?rev=3536930","caption":"The main admin panel showing the rule list with the warning notice."},{"src":"https:\/\/ps.w.org\/lm-page-assets-control\/assets\/screenshot-2.png?rev=3536930","caption":"An expanded rule card showing the asset URL field and page condition selector."}],"raw_content":"<!--section=description-->\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\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\n<h4>How It Works<\/h4>\n\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\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Partial URL matching<\/strong> \u2014 You don'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 \u2192 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\n<h4>Available Page Conditions<\/h4>\n\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\n<h4>Common Use Cases<\/h4>\n\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\n<h4>\u26a0\ufe0f Important Notice<\/h4>\n\n<p>This plugin directly controls which CSS and JavaScript files are loaded on your website. Blocking the wrong asset can break your site'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\n<h4>Who Is This For?<\/h4>\n\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 \"set and forget\" solution \u2014 it requires you to identify the assets you want to block and verify that blocking them does not cause issues.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>lm-page-assets-control<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory, or install it directly through the WordPress Plugins screen.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> screen in WordPress.<\/li>\n<li>Go to <strong>Plugins \u2192 LM Page Assets Control<\/strong> in the WordPress admin menu.<\/li>\n<li>Click <strong>Add New Rule<\/strong> and fill in the asset URL partial and the condition.<\/li>\n<li>Click <strong>Save All Rules<\/strong>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20find%20the%20url%20of%20an%20asset%20i%20want%20to%20block%3F\"><h3>How do I find the URL of an asset I want to block?<\/h3><\/dt>\n<dd><p>Open your browser's Developer Tools (press F12), go to the <strong>Network<\/strong> tab, filter by CSS or JS, and reload the page. You will see all assets being loaded. Copy any part of the filename or path \u2014 for example <code>slider-pro.min.css<\/code> or <code>plugins\/slider-pro\/css<\/code> \u2014 and paste it into the Asset URL field.<\/p>\n\n<p>You can also use PageSpeed Insights (https:\/\/pagespeed.web.dev\/) to identify render-blocking resources that are slowing down your site.<\/p><\/dd>\n<dt id=\"will%20this%20break%20my%20site%3F\"><h3>Will this break my site?<\/h3><\/dt>\n<dd><p>It can, if you block the wrong asset. Always test on a staging site first. If something breaks after saving rules, you can disable the offending rule or deactivate the plugin \u2014 your site will return to normal immediately.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20woocommerce%3F\"><h3>Does it work with WooCommerce?<\/h3><\/dt>\n<dd><p>Yes. The plugin includes dedicated conditions for WooCommerce Shop, Product, Cart, and Checkout pages. However, be especially careful when blocking WooCommerce-related assets as this can affect the purchasing experience.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20page%20builders%20like%20elementor%2C%20divi%2C%20or%20beaver%20builder%3F\"><h3>Does it work with page builders like Elementor, Divi, or Beaver Builder?<\/h3><\/dt>\n<dd><p>Yes, you can use it to block page builder assets on pages that don't use that builder. Use the Asset URL partial from the Network tab to identify the correct file paths.<\/p><\/dd>\n<dt id=\"can%20i%20block%20multiple%20assets%20with%20one%20rule%3F\"><h3>Can I block multiple assets with one rule?<\/h3><\/dt>\n<dd><p>One rule targets one partial URL match. However, one partial match can block multiple files if they all share the same path string. For example, entering <code>elementor\/assets<\/code> would block all assets whose URL contains that path. Add separate rules for different asset paths.<\/p><\/dd>\n<dt id=\"can%20i%20block%20an%20asset%20on%20all%20pages%20except%20one%3F\"><h3>Can I block an asset on all pages except one?<\/h3><\/dt>\n<dd><p>Yes. Use the <strong>URL does NOT contain<\/strong> condition and enter a string that uniquely identifies the page you want to keep the asset on.<\/p><\/dd>\n<dt id=\"does%20this%20affect%20the%20admin%20area%3F\"><h3>Does this affect the admin area?<\/h3><\/dt>\n<dd><p>No. The plugin only runs on the frontend (<code>wp_enqueue_scripts<\/code> hook). Admin assets are never affected.<\/p><\/dd>\n<dt id=\"is%20there%20a%20premium%20version%3F\"><h3>Is there a premium version?<\/h3><\/dt>\n<dd><p>No. LM Page Assets Control is completely free with no premium upsell.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>Support for 14 page conditions including all major WooCommerce contexts.<\/li>\n<li>Partial URL matching for CSS and JS assets.<\/li>\n<li>Enable\/disable toggle per rule.<\/li>\n<li>Named rules for easy management.<\/li>\n<li>Clean, modern admin UI.<\/li>\n<\/ul>","raw_excerpt":"Block specific CSS and JS files from loading on pages where they are not needed. Improve page speed by preventing unnecessary assets from loading.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/293392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=293392"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/lmdesigners"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=293392"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=293392"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=293392"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=293392"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=293392"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=293392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}