Shareaholic | share buttons, related posts, social analytics & more
[resolved] Only Loads JS where code is required (2 posts)

  1. MCM
    Posted 3 years ago #

    I noticed that jquery.shareaholic-publishers-sb.min.js code is loaded on my home page which is a landing page and does not display the share buttons.

    Would it not be possible to ONLY load the script on pages that require it to improvement performance.

    Nice work on the CDN updates. Thanks


  2. Shareaholic
    Plugin Author

    Posted 3 years ago #

    Hi @nathmie

    Thanks for using Shareaholic!

    I think that’s an awesome idea! We will look into this.

    One thing to note - the JS will get cached as soon as it is loaded once. So it should not effect load time much, if at all. Also, the CDN is speedy so even the first load should now be speedy.

    If you have any other questions or suggestions, just let me know and I’ll be happy to help. And have a fantastic day!

    [ Signature moderated. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic