Mobile app version of vmapp.org
Login or Join
Bethany197

: Multiple calls for mutiple Facebook, twitter buttons If a page has multiple facebook/twitter buttons for multiple stories (24 buttons for 24 stories), its creating 24 files for fb likes and 24

@Bethany197

Posted in: #Facebook #Twitter

If a page has multiple facebook/twitter buttons for multiple stories (24 buttons for 24 stories), its creating 24 files for fb likes and 24 folders for twitter where count is saved. This is making the page heavy unnecessarily. Can we store it in single file? Please help.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Bethany197

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shanna517

You need to start using css sprits, this allows you to load one image file and with css display only the section of the image that you need.

img.home {
width:46px;
height:44px;
background:url(img_navsprites.gif) 0 0;
}


In the example above you see that starting at position 0x0 in the image we display a rectangle 46px x 44px.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme