Title: Reducing UM css and script files
Last modified: February 17, 2021

---

# Reducing UM css and script files

 *  Resolved [GregW](https://wordpress.org/support/users/gwmbox/)
 * (@gwmbox)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/reducing-um-css-and-script-files/)
 * Hi, I am just following up on another post that is now closed here – [https://wordpress.org/support/topic/way-too-many-css-js-files-included-on-every-page-load/](https://wordpress.org/support/topic/way-too-many-css-js-files-included-on-every-page-load/)
 * Which points to the UM Page at [https://docs.ultimatemember.com/article/1490-how-to-remove-css-and-js-on-non-um-pages](https://docs.ultimatemember.com/article/1490-how-to-remove-css-and-js-on-non-um-pages)
 * Is this still required to remove UM styles and scripts from pages that do not
   have UM content on them?
 * Also with there being so many scripts and css, I have read several posts where
   UM devs where planning to optimised those files to help the load on the pages
   using UM. Has that been done, is there a better way to reduce so many css and
   script files to run UM?
 * EDIT:
 * In the file it has the code;
 *     ```
       // Set here IDs of the pages, that use Ultimate Member scripts and styles
       	$um_posts = array(0);
   
       	// Set here URLs of the pages, that use Ultimate Member scripts and styles
       	$um_urls = array(
       		'/account/',
       		'/activity/',
       		'/groups/',
       		'/login/',
       		'/logout/',
       		'/members/',
       		'/my-groups/',
       		'/password-reset/',
       		'/register/',
       		'/user/',
       	);
       ```
   
 * Are both required, as in if the pages all exist in the urls, do I still need 
   to add the page id’s, just seems like a double up?
 * My count is that UM uses 17 js files and 18 css files.
    -  This topic was modified 5 years, 3 months ago by [GregW](https://wordpress.org/support/users/gwmbox/).
    -  This topic was modified 5 years, 3 months ago by [GregW](https://wordpress.org/support/users/gwmbox/).
    -  This topic was modified 5 years, 3 months ago by [GregW](https://wordpress.org/support/users/gwmbox/).

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

 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/reducing-um-css-and-script-files/#post-14061388)
 * Hi [@gwmbox](https://wordpress.org/support/users/gwmbox/)
 * This has been added to the feature request list. We will add it to version 3 
   of the plugin. You can still try following the steps in the link to exclude UM
   scripts/styles from specific pages.
 * Regards,
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/reducing-um-css-and-script-files/#post-14061403)
 * Hi [@gwmbox](https://wordpress.org/support/users/gwmbox/)
 * You can fill both arrays so that if one misses, there’s a fallback.
 * Regards,
 *  Thread Starter [GregW](https://wordpress.org/support/users/gwmbox/)
 * (@gwmbox)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/reducing-um-css-and-script-files/#post-14061430)
 * Cheers for the quick reply?
 * What is the roadmap time for v3?
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/reducing-um-css-and-script-files/#post-14062099)
 * Hi [@gwmbox](https://wordpress.org/support/users/gwmbox/)
 * Here’s a link to our development roadmap:
    [https://ultimatemember.com/roadmap](https://ultimatemember.com/roadmap)
 * Regards,

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

The topic ‘Reducing UM css and script files’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

 * [.js files](https://wordpress.org/support/topic-tag/js-files/)
 * [css files](https://wordpress.org/support/topic-tag/css-files/)

 * 4 replies
 * 2 participants
 * Last reply from: [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/reducing-um-css-and-script-files/#post-14062099)
 * Status: resolved