Support » Plugin: Social Articles » Avoid loading scripts on non-articles pages?

  • Resolved Bike

    (@bike)


    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!

    https://wordpress.org/plugins/social-articles/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Avoid loading scripts on non-articles pages?’ is closed to new replies.