Title: reduce unused javascript
Last modified: April 30, 2025

---

# reduce unused javascript

 *  Resolved [hbk747](https://wordpress.org/support/users/hbk747/)
 * (@hbk747)
 * [1 year ago](https://wordpress.org/support/topic/reduce-unused-javascript-8/)
 * Hello,
 * I was running a Page Speed Insights and I found that one of the issues on many
   of my pages is the Reduce Unused JavaScript. Under that error, this was showing
   up [https://www.paradigmshift.com.pk/wp-content/plugins/sassy-social-share/public/js/sassy-social-share-public.js?ver=6fdf00969efe](https://www.paradigmshift.com.pk/wp-content/plugins/sassy-social-share/public/js/sassy-social-share-public.js?ver=6fdf00969efe)
 * Is there any way to resolve this issue?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freduce-unused-javascript-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [hbk747](https://wordpress.org/support/users/hbk747/)
 * (@hbk747)
 * [1 year ago](https://wordpress.org/support/topic/reduce-unused-javascript-8/#post-18444894)
 * Another question I had was that I have the standard interface activated for posts
   and the position I have chosen is Bottom of the Content. However the social share
   buttons appear after the excerpt (which is at the top of the page) and after 
   the post. Please take a look at this screenshot:
 * [https://ibb.co/RkN5ptZb](https://ibb.co/RkN5ptZb)
 * The social buttons are below the excerpt which is causing a longer load time.
   I want to disable these but keep the ones at the bottom of the post active. Right
   now I have deactivated the social buttons copletely.
 *  Plugin Contributor [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * (@the_champ)
 * [1 year ago](https://wordpress.org/support/topic/reduce-unused-javascript-8/#post-18445120)
 * To get rid of the unused message, try adding following code in the functions.
   php file of your active WordPress theme.
 * `/**
   * Initialization*/function heateor_sss_custom_init() {add_action( 'wp_enqueue_scripts','
   heateor_dequeue_js_css' );}add_action( 'init', 'heateor_sss_custom_init' );
 * `/**
   * Dequeue the CSS and Javascript files of Sassy Social Share*/function heateor_dequeue_js_css(){
   global $post;// put your condition herewp_dequeue_style( 'heateor_sss_frontend_css');
   wp_dequeue_script( 'heateor_sss_sharing_js' );}
 * This will prevent the Javascript file from loading on your website.
 * To check why the buttons are appearing more than once, post a screenshot showing
   the page-groups you have selected in the **Placement** option in the **Standard
   Interface **section at the plugin configuration page.
 *  Thread Starter [hbk747](https://wordpress.org/support/users/hbk747/)
 * (@hbk747)
 * [1 year ago](https://wordpress.org/support/topic/reduce-unused-javascript-8/#post-18445138)
 * [@the_champ](https://wordpress.org/support/users/the_champ/)
 * Hello, I will try adding the code.
 * Here is the screenshot:
 * [https://ibb.co/21YbwzxL](https://ibb.co/21YbwzxL)
 *  Plugin Contributor [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * (@the_champ)
 * [1 year ago](https://wordpress.org/support/topic/reduce-unused-javascript-8/#post-18445190)
 * Icons are appearing twice because [the_content](https://developer.wordpress.org/reference/functions/the_content/)
   filter is being used once with the excerpt and again after the end of the content
   of the web page. This filter is responsible for the rendering of the icons. I
   suggest you modify the theme to not use the excerpt at the beginning of the main
   content OR use it as it is now. Multiple share bars won’t impact the loading 
   of the web page.

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

The topic ‘reduce unused javascript’ is closed to new replies.

 * ![](https://ps.w.org/sassy-social-share/assets/icon-128x128.png?rev=3258279)
 * [Social Sharing Plugin - Sassy Social Share](https://wordpress.org/plugins/sassy-social-share/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sassy-social-share/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sassy-social-share/)
 * [Active Topics](https://wordpress.org/support/plugin/sassy-social-share/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sassy-social-share/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sassy-social-share/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Rajat Varlani](https://wordpress.org/support/users/the_champ/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/reduce-unused-javascript-8/#post-18445190)
 * Status: resolved