Title: Optimize JS and CSS
Last modified: May 2, 2020

---

# Optimize JS and CSS

 *  Resolved [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/)
 * Hello,
 * 1-I’ve worked on my website optimization. Thus, I challenged it with multiple
   tools and speed assessment sites. I found that way that your _wsm\_new.js_ could
   be minified. It would be half its actual size.
 * 2-In `<head>` section of admin page you load some CSS code using custom_admin.
   php . This has side effects with other plugin (I can name you which one so you
   could see by yourself) and not using `wp_enqueue_style` forbid external optimizations.
   Moreover, custom admin css doesn’t seem effective…
 * 3-Minor fix: in _css\custom\_admin.php_, you could change 4 instances of:
    `<?
   php echo WSM_URL;?>/images` to `<?php echo WSM_URL;?>images`
 * 4-Maybe could you split you CSS into a static part (without any “contextual” 
   computed values) and a dynamic one to complete the set?
 * Thanks

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

 *  Plugin Author [osama.esh](https://wordpress.org/support/users/osamaesh/)
 * (@osamaesh)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12771816)
 * hello,
    thank you for the very good notes, we will fix and update the current
   version very soon, can i know the version number your are talking about?
 *  Thread Starter [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12773463)
 * Hello,
 * I wa susing v7.4 when I opened this topic and I’m now using v7.5 😉
    Same observations.
 *  Plugin Author [osama.esh](https://wordpress.org/support/users/osamaesh/)
 * (@osamaesh)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12776089)
 * hello again,
    could you please check again now? we compress the css also
 *  Thread Starter [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12776705)
 * Hello,
 * I just installed v7.6: you did a great job on CSS!
    I can’t wait to see what 
   you’ll do on the JS part for `wsm_new.js` 🙂
 * Thank you.
 * Your reactivity is appreciated!
 *  Plugin Author [osama.esh](https://wordpress.org/support/users/osamaesh/)
 * (@osamaesh)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12776867)
 * Done 🙂
    If you like our plugin please leave us a [★★★★★](https://wordpress.org/support/plugin/wp-stats-manager/reviews/?rate=5#new-post)
   rating. A huge thanks in advance!
 *  Thread Starter [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12777530)
 * I validate! It’s now a 1/4 of its previous size. Wonderful. 🙂
 * One more to go and you’ll gain this fifth star, I promise, cause you plugin is
   clearly ahead of its competitors!
 * Thanks.
 *  Thread Starter [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12779235)
 * Me again 🙂
    One more thing on that one: maybe could you remove or comment line
   21 in `wsm_init.php`? An perhaps also use enqueue script for wsm_new.js and afterwards
   add ‘defer’ and ‘async’ to it by applying filter to ‘script_loader_tag’?
 * Would be great, really.
 *  Plugin Author [osama.esh](https://wordpress.org/support/users/osamaesh/)
 * (@osamaesh)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12782995)
 * Done 🙂
    Please upgrade to the latest pro release 7.8
 * If you like our plugin please leave us a [★★★★★](https://wordpress.org/support/plugin/wp-stats-manager/reviews/?rate=5#new-post)
   rating. A huge thanks in advance!
 *  Thread Starter [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12783255)
 * Tested and switched to prod.
    Perfect!
 * Tanks again.
 *  Plugin Author [osama.esh](https://wordpress.org/support/users/osamaesh/)
 * (@osamaesh)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12783359)
 * Great 🙂
    what about the review 🙂
 * [https://wordpress.org/support/plugin/wp-stats-manager/reviews/](https://wordpress.org/support/plugin/wp-stats-manager/reviews/)
    -  This reply was modified 6 years ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Deleted ?filter=5 from review link
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12783455)
 * [@osamaesh](https://wordpress.org/support/users/osamaesh/) Don’t put `?filter
   =5` in your review links, it hides the non-5 star reviews from the person who
   uses that link and that’s not being completely honest. That’s not necessary as
   the stars default to 5 for all new reviews. The reviewer would manually need 
   to change it to something other than 5 if they wanted to.
 * I’ve removed that part and now they’ll see the actual reviews and not just the
   5 star ones.
 *  Plugin Author [osama.esh](https://wordpress.org/support/users/osamaesh/)
 * (@osamaesh)
 * [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12783520)
 * I’m sorry,
    thank you for letting me know

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

The topic ‘Optimize JS and CSS’ is closed to new replies.

 * ![](https://ps.w.org/wp-stats-manager/assets/icon-256x256.gif?rev=2271306)
 * [WP Visitor Statistics (Real Time Traffic)](https://wordpress.org/plugins/wp-stats-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stats-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stats-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stats-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stats-manager/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [optimization](https://wordpress.org/support/topic-tag/optimization/)
 * [Stylesheet](https://wordpress.org/support/topic-tag/stylesheet/)

 * 12 replies
 * 3 participants
 * Last reply from: [osama.esh](https://wordpress.org/support/users/osamaesh/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/optimize-js-and-css/#post-12783520)
 * Status: resolved