WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddToAny
[Plugin: Share Buttons by Lockerz / AddToAny] Use CSS sprites for standalone share icons (2 posts)

  1. OC2PS
    Member
    Posted 1 year ago #

    At the moment, separate icon image files are loaded whenever any standalone services are chosen.

    Performance can be improved by combining all of these icons into a css sprite. Whenever the admin adds/removes standalone services and hits Save, this should trigger the creation of a CSS sprite including icons for all the selected standalone services.

    There are lots of free web services for creating sprites, and many of them offer APIs as well...

    http://csssprites.org/
    http://spritegen.website-performance.org/
    http://csssprites.com/bare.html
    http://css-sprit.es/
    http://www.spritebox.net/

    I understand that there are a couple of services for which sprites can't be used - Facebook Like, Google +1, etc. But the rest can and should be combined into a sprite.

    http://wordpress.org/extend/plugins/add-to-any/

  2. micropat
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the request! The external JavaScript resource actually contains an excellent (and widely cached) sprite, so it's likely that we'll switch to this in the future.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags