Support » Plugin: AddToAny Share Buttons » AddtoAny script is very big. (50kb)

  • Resolved tempor



    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


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author micropat


    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.


    thank you for your response.

    a)I received this data from:

    it gives me this: => 49,943 Bytes

    b)I have also checked in:

    and I recieved this:
    49943 SCRIPT Main Doc 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.

    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).

    Plugin Author micropat


    Those web services won’t report back the gzip correctly because gzip-compression from 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 JS. For almost all sites it’s best to leave this option unchecked because the script at is often already cached in users’ browsers from AddToAny usage on other sites across the web.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘AddtoAny script is very big. (50kb)’ is closed to new replies.