Title: Template based rules (disable css/js)
Last modified: April 13, 2019

---

# Template based rules (disable css/js)

 *  [Rookie](https://wordpress.org/support/users/alriksson/)
 * (@alriksson)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/template-based-rules-disable-css-js/)
 * Would it be possible to hook into Elementor and page builders theme builders.
   To manage the the clean up and disable css and js based on single and archive
   templates?
 * Would be very nice and also to add more functions this plugin has: [https://wordpress.org/plugins/clearfy/](https://wordpress.org/plugins/clearfy/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/template-based-rules-disable-css-js/#post-11427657)
 * Rookie, would you like to edit those templates and select a few CSS/JS that you
   know will never be used when using those templates that will be hooked into Elementor?
   Those templates are not standalone pages, and Asset CleanUp is not integrated
   with them at least at this time. Let me know if that’s your goal!
 *  Thread Starter [Rookie](https://wordpress.org/support/users/alriksson/)
 * (@alriksson)
 * [7 years ago](https://wordpress.org/support/topic/template-based-rules-disable-css-js/#post-11524551)
 * The goal is to unload css/js just as I can do on pages but based on elementor
   single, header, footer templates. This since some scripts from the plugins is
   used on x template but not y template.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Template based rules (disable css/js)’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rookie](https://wordpress.org/support/users/alriksson/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/template-based-rules-disable-css-js/#post-11524551)
 * Status: not resolved