开发者

Too many GET requests for Facebook like buttons for a list of items

I have 30 facebook like buttons for a list of 30 items on single page. This lead开发者_如何学Cs to 30 GET requests, each for a button.

Is there a way I could reduce the no of GET requests?

Also request take too long and sometimes even fail thus rendering the page without like button. At times request are not even triggered.


You can lazy load them based on scroll position like sites like Techcrunch do. This site has a walkthrough on how to do it. But if all 30 buttons need to be displayed all at once then this will be hard to avoid.


I know this is old, but one may also use the "2-click Social Buttons (like,google +1,tweeter...)" solution to gain 2 benefits:

  • privacy
  • performance

also see: https://www.google.co.il/search?q=social+share+privacy

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜