Title: Avoid loading scripts on non-articles pages
Last modified: August 21, 2016

---

# Avoid loading scripts on non-articles pages

 *  Resolved [Bike](https://wordpress.org/support/users/bike/)
 * (@bike)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/avoid-loading-scripts-on-non-articles-pages-2/)
 * (I just posted this, but somehow it is not available anymore? So here it comes
   again)
 * Hi, I checked a theme, with BP and Social Articles switched on, on GT Metrix 
   and noticed that on every page at least 5 SA javascripts are loaded and likely
   a lot of other scripts/css as well.
 *     ```
       wp-content/plugins/social-articles/assets/css/stylesheet.css?ver=20130108
       wp-content/plugins/social-articles/assets/js/advanced.js?ver=3.9
       wp-content/plugins/social-articles/assets/js/ajaxupload.js?ver=3.9
       wp-content/plugins/social-articles/assets/js/jquery.tmpl.min.js?ver=3.9
       wp-content/plugins/social-articles/assets/js/social-articles.js?ver=3.9
       wp-content/plugins/social-articles/assets/js/wysihtml5-0.3.0.min.js?ver=3.9
       ```
   
 * (this was on a search result page!)
 * Is there a way to prevent this? The scripts should only load on actual SA pages,
   not on every page load, saving load times and increasing speed.
 * Thanks!
 * ps: these scripts are over 115kb together, the wysihtml alone is nearly 100kb
   and loads before the page, blocking page loads.
 * [https://wordpress.org/plugins/social-articles/](https://wordpress.org/plugins/social-articles/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Broobe](https://wordpress.org/support/users/broobe_dev/)
 * (@broobe_dev)
 * [12 years ago](https://wordpress.org/support/topic/avoid-loading-scripts-on-non-articles-pages-2/#post-4850083)
 * Duplicated

Viewing 1 replies (of 1 total)

The topic ‘Avoid loading scripts on non-articles pages’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/social-articles_bebebf.svg)
 * [Social Articles](https://wordpress.org/plugins/social-articles/)
 * [Support Threads](https://wordpress.org/support/plugin/social-articles/)
 * [Active Topics](https://wordpress.org/support/plugin/social-articles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/social-articles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/social-articles/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Broobe](https://wordpress.org/support/users/broobe_dev/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/avoid-loading-scripts-on-non-articles-pages-2/#post-4850083)
 * Status: resolved