: 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
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.
More posts by @Bethany197
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.