Title: Allow javascript when active
Last modified: January 21, 2019

---

# Allow javascript when active

 *  Resolved [Yash Baldawa](https://wordpress.org/support/users/baldawayash15/)
 * (@baldawayash15)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/allow-javascript-when-active/)
 * Hey there,
    How can I allow your plugin script to be loaded only on specific 
   posts or pages, because it loads the script on entire website.
 * Thanks in advance!

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

 *  [Andres (ShareThis Support)](https://wordpress.org/support/users/andressharethis/)
 * (@andressharethis)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/allow-javascript-when-active/#post-11144612)
 * Hi there [@baldawayash15](https://wordpress.org/support/users/baldawayash15/),
 * Thanks for reaching out, I’d be happy to help here! 😀
 * You will be able to do so by heading to your buttons’ settings -> WordPress Display
   Settings.
 * There you will be able to limit your buttons from being propagated on specific
   pages.
 * Please do let me know if there is anything else I can help you with!
 * Cheers,
    Andres
 *  [WraithKenny](https://wordpress.org/support/users/wraithkenny/)
 * (@wraithkenny)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/allow-javascript-when-active/#post-11146610)
 * The buttons are disabled, yet the CSS and JavaScript are still enqueued, which
   Google dings our PageSpeed/SEO for downloading assets.
 *  Thread Starter [Yash Baldawa](https://wordpress.org/support/users/baldawayash15/)
 * (@baldawayash15)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/allow-javascript-when-active/#post-11148115)
 * Unfortunately, it doesn’t work as expected. It still loads the styles and scripts
   on entire website. Is there any way to resolve this?
 *  [Andres (ShareThis Support)](https://wordpress.org/support/users/andressharethis/)
 * (@andressharethis)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/allow-javascript-when-active/#post-11171046)
 * Hi there [@wraithkenny](https://wordpress.org/support/users/wraithkenny/) and
   [@baldawayash15](https://wordpress.org/support/users/baldawayash15/),
 * Thanks for your reply! 😀
 * Unfortunately, at the moment we don’t count with an official workaround for your
   scripts and styling complete disabling method for the excluded pages request.
 * However, there is a pool of ideas we periodically dive looking for new features
   and if anything changes regarding your request on our end then, be sure I’ll 
   get back to you.
 * Please do let me know if you have any other concerns or ideas!
 * Cheers,
    Andres

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

The topic ‘Allow javascript when active’ is closed to new replies.

 * ![](https://ps.w.org/sharethis-share-buttons/assets/icon-256x256.gif?rev=2782088)
 * [ShareThis Share Buttons](https://wordpress.org/plugins/sharethis-share-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sharethis-share-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sharethis-share-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/sharethis-share-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sharethis-share-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sharethis-share-buttons/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Andres (ShareThis Support)](https://wordpress.org/support/users/andressharethis/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/allow-javascript-when-active/#post-11171046)
 * Status: resolved