WordPress.org

Forums

Social Articles
[resolved] Avoid loading scripts on non-articles pages (2 posts)

  1. Bike
    Member
    Posted 1 year ago #

    (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/

  2. Broobe
    Member
    Plugin Author

    Posted 11 months ago #

    Duplicated

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Social Articles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.