AddToAny Share Buttons
[resolved] AddtoAny script is very big. (50kb) (5 posts)

  1. tempor
    Posted 4 years ago #


    1) is there a way to gzip the feed.js? It is 49,943 Bytes right now and if I remember correctly it used to be around 10kb.

    -I have selected "Cache AddToAny locally with daily cache updates" (so maybe I could gzip it this way) but it still comes from http://static.addtoany.com/menu/


  2. micropat
    Plugin Author

    Posted 4 years ago #

    It's actually much smaller, and already optimized, minified, and gzip compressed. Whichever tool you're using (such as any Webkit-based browser like Chrome or Safari) doesn't take into account the gzip. Firefox, for example, shows the accurate filesize coming in at 19.6kb.

  3. tempor
    Posted 4 years ago #


    thank you for your response.

    a)I received this data from:

    it gives me this:
    http://static.addtoany.com/menu/feed.js => 49,943 Bytes

    b)I have also checked in:

    and I recieved this:
    49943 SCRIPT Main Doc
    http://static.addtoany.com/menu/feed.js Header size = 441 bytes
    Up to 33443 bytes could have been saved through compression.

    I haven't used any browser to receive these results.

    Am I responsible for this?

    Thank you.

  4. tempor
    Posted 4 years ago #

    Can it be my .htaccess settings or something else?

    (The scripts running from my server and from the external google api are compressed by the same tests).

  5. micropat
    Plugin Author

    Posted 4 years ago #

    Those web services won't report back the gzip correctly because gzip-compression from static.addtoany.com only serves end-users of all modern browsers. This is done to ensure that users of older browsers are still able to use AddToAny.

    If you're caching the script locally on your server (by checking "Cache AddToAny locally with daily cache updates"), you would need to figure out a way with your host enable gzip compression to match the small filesize of the static.addtoany.com-hosted JS. For almost all sites it's best to leave this option unchecked because the script at static.addtoany.com is often already cached in users' browsers from AddToAny usage on other sites across the web.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AddToAny Share Buttons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic