WordPress.org

Support

Support » Plugins and Hacks » AddToAny Share Buttons » [Resolved] AddtoAny script is very big. (50kb)

[Resolved] AddtoAny script is very big. (50kb)

  • Hi,

    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/

    Thanks

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

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

    Hi,

    thank you for your response.

    a)I received this data from:
    http://rapid.searchmetrics.com/

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

    b)I have also checked in:
    http://analyze.websiteoptimization.com/

    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.

    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

    @micropat

    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.

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