Title: Remove unused JS code
Last modified: December 19, 2020

---

# Remove unused JS code

 *  Resolved [a223123131](https://wordpress.org/support/users/a223123131/)
 * (@a223123131)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/remove-unused-js-code/)
 * [https://web.de](https://web.de) or Lighthouse tells me to remove unused JS code
   in the combined SSL3 js file.
 * Lighthouse will become a ranking factor for Google. SSL3 is amazing from features
   and functions, but how can I remove code of functions I do not use? Best would
   be to have a switch in SSL3 where I can enable / disable sections to reduce js
   and css code!
    -  This topic was modified 5 years, 5 months ago by [a223123131](https://wordpress.org/support/users/a223123131/).

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

 *  Plugin Support [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/remove-unused-js-code/#post-13812231)
 * Hi [@a223123131](https://wordpress.org/support/users/a223123131/)
 * We are already working on some modifications which will improve the scores in
   Lighthouse, but it will take some time.
    So currently I can not really tell anything
   concrete about when will be able to release a version that contains the improvements.
 * Best regards,
    Laszlo.
 *  Thread Starter [a223123131](https://wordpress.org/support/users/a223123131/)
 * (@a223123131)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/remove-unused-js-code/#post-13813470)
 * Yes, Lighthouse is mixing many things and requires a lot of changes. I’m confident
   that you are the first / best plugin to support Lighthouse optimization!
 *  [toad78](https://wordpress.org/support/users/toad78/)
 * (@toad78)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/remove-unused-js-code/#post-14000468)
 * [@laszloszalvak](https://wordpress.org/support/users/laszloszalvak/)
    Is there
   an update on this feature?
 *  Plugin Author [Nextendweb](https://wordpress.org/support/users/nextendweb/)
 * (@nextendweb)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/remove-unused-js-code/#post-14000694)
 * [@toad78](https://wordpress.org/support/users/toad78/)
    We are still working 
   on it. For exmaple Smart Slider will not use jQuery on the frontend in the future
   also we are refactoring our code by removing compatibility codes for old, non
   supported browsers. I think that will decrease our overall frontend JavaScript
   code size by 10-30%.
 * Lighthouse might report that xx% of the JavaScript files are unused, but it is
   only valid for the loading. It’s not able to measure the codes which needed when
   you are changing slides, use different animations/autoplay and such features.
   Also it is not viable to split Smart Slider’s JavaScript into 1kb chunks as it
   would result a ton of network requests for those files instead of one of two.
 *  [toad78](https://wordpress.org/support/users/toad78/)
 * (@toad78)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/remove-unused-js-code/#post-14003150)
 * Thank you.

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

The topic ‘Remove unused JS code’ is closed to new replies.

 * ![](https://ps.w.org/smart-slider-3/assets/icon.svg?rev=2307688)
 * [Smart Slider 3](https://wordpress.org/plugins/smart-slider-3/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-slider-3/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-slider-3/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-slider-3/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-slider-3/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-slider-3/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [toad78](https://wordpress.org/support/users/toad78/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/remove-unused-js-code/#post-14003150)
 * Status: resolved