轻量级喜欢
我在各种不同的应用程序/网站中使用 fb:like/share/send 等,有时会调用按钮来渲染多次,例如在拥有多个商品的商店中。
问题是“喜欢”按钮非常臃肿。我正在使用 xfbml 版本,但后台似乎不断进行重定向。注释掉按钮后,页面呈现出活泼而漂亮的效果,取消类似按钮的注释,一切都会陷入真正的停顿。
我已经看到了一些用于模糊按钮等的黑帽解决方案,但我真正追求的只是一个更轻量级的解决方案。有谁知道有什么方法可以从 api 调用“like”,以便它可以附加到一个事件并消除 Facebook 的可怕解决方案吗?
I'm using fb:like/share/send etc within a variety of different apps/sites sometimes where the buttons are called to render several times, for example on a store with multiple items.
Problem is the like buttons are horribly bloaty. I'm using xfbml vers but there seems to be constant redirection going on in the background. With the buttons commented out, page renders snappy and nice, uncomment the like buttons and everything grinds to a veritable halt.
I've seem some blackhat solutions for obscuring the buttons etc. but all i'm really after is simply a lighter-weight like solution. Does anyone know of any way you can call 'like' from the api so that it might be attached to an event and cut-out fb's horrible solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用已弃用的 Share 方法,该方法会向我的页面添加一行 HTML 和小图像。这对我来说很重要。我的博客被许多老年人使用,他们的机器速度很慢,互联网连接速度很慢,浏览器也过时了。所以我让我的页面小而简单。
我尝试切换到“赞”按钮,但页面加载时间延长了 5 倍甚至 10 倍。
所以恐怕没有答案 - 除了坚持分享之外。但支持您对重量更轻的“赞”按钮的呼吁。一个小图像、六行 HTML 以及无需额外服务器调用的选项就太好了。
I use the deprecated Share method, which adds one line of HTML and small image to my pages. This is important to me. My blog is used by many older people with slow machines, slow Internet connections and obsolete browsers. So I keep my pages small and simple.
I tried switching to the Like button, but it pages took 5 or even 10 times as long to load.
So no answer, I'm afraid - aside from sticking with Share. But supporting your call for a lighter weight Like button. A small image, half a dozen lines of HTML and the option of no additional server call would be great.