有没有办法用socialite.js异步加载Twitter小部件? [英] Is there a way to asynchronously load twitter widget with socialite.js?

查看:97
本文介绍了有没有办法用socialite.js异步加载Twitter小部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了socialite.js插件来显示社交网络按钮,但这与标准的twitter小部件/提要冲突.无论如何,是否有可能在使用社交名流中加载小部件并在可能的情况下异步进行?感谢您的帮助...

Hi I've used the socialite.js plugin to display social network buttons but this conflicts with the standard twitter widget/feed. Is there anyway to load the widget in using socialite and do it asynchronously if possible please? Thanks for any help...

推荐答案

我最近写了一篇有关此确切插件的文章.在以下位置查看:

I recently wrote an article about this exact plugin. Check it out at:

http://www.deanhume.com/Home/BlogPost/lazy-loading-social-sharing-buttons/73

仅涵盖在社交按钮处于视口中时加载它,但还有其他一些可用选项.

It covers only loading it when the social button is in viewport, but there are a few other options available too.

这篇关于有没有办法用socialite.js异步加载Twitter小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆