Title: How dequeue scripts?
Last modified: June 8, 2018

---

# How dequeue scripts?

 *  Resolved [Renz Ramos](https://wordpress.org/support/users/imrenzramos/)
 * (@imrenzramos)
 * [8 years ago](https://wordpress.org/support/topic/how-dequeue-scripts/)
 * How to dequeue scripts for specific pages?
 * For example in home page I don’t like to load the resources.
    or there is a way
   to load the resources only on the pages with the social media sharer?
 * Do you have functionality similar to this? [https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/](https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/)
 * Thanks,
    REnz

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

 *  Plugin Author [socialdude](https://wordpress.org/support/users/socialdude/)
 * (@socialdude)
 * [8 years ago](https://wordpress.org/support/topic/how-dequeue-scripts/#post-10377240)
 * Thanks for your question Renz.
 * Why don’t you place the icons via shortcode only on the pages where you want 
   to have it?
 *  Thread Starter [Renz Ramos](https://wordpress.org/support/users/imrenzramos/)
 * (@imrenzramos)
 * [8 years ago](https://wordpress.org/support/topic/how-dequeue-scripts/#post-10385607)
 * Yes. I did that.
 * I added the code below in the specific template
    echo do_shortcode(‘[DISPLAY_ULTIMATE_SOCIAL_ICONS]’);
 * But the resources of plugin still active in other pages without the shortcode.
   It affects the loading time of the page.
    -  This reply was modified 8 years ago by [Renz Ramos](https://wordpress.org/support/users/imrenzramos/).
 *  Plugin Author [socialdude](https://wordpress.org/support/users/socialdude/)
 * (@socialdude)
 * [8 years ago](https://wordpress.org/support/topic/how-dequeue-scripts/#post-10386281)
 * Ok, I cross-checked with the developers. We optimized this plugins code for that
   [https://www.ultimatelysocial.com/usm-premium/](https://www.ultimatelysocial.com/usm-premium/),
   i.e. there the codes will only be loaded where you show the icons.

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

The topic ‘How dequeue scripts?’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-social-media-icons/assets/icon-128x128.gif?rev=
   2569754)
 * [Social Media Share Buttons & Social Sharing Icons](https://wordpress.org/plugins/ultimate-social-media-icons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-social-media-icons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-social-media-icons/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-social-media-icons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-social-media-icons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-social-media-icons/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [socialdude](https://wordpress.org/support/users/socialdude/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/how-dequeue-scripts/#post-10386281)
 * Status: resolved