是否允许缩小 Google +1 按钮和 Twitter 的关注按钮?
我最近添加了 +1 按钮和新 Twitter 的关注按钮,我想缩小它们。是否允许缩小按钮的脚本?
这意味着我想缩小 twitter:
<script type="text/javascript"> (function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
和 google+:
<script type="text/javascript"> (function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script
我试图在常见问题解答部分中查看它,但找不到任何内容。
提前致谢,丁。
I recently added a +1 button and the new Twitter's follow button and I would like to minify them.. Is minifying the button's script's is allowed?
It means that i would like to minify this for twitter:
<script type="text/javascript"> (function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = '//platform.twitter.com/widgets.js';
document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
})();
</script>
and this for google+:
<script type="text/javascript"> (function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script
I tried to check it out in thier FAQ section, but couldn't find anything.
Thanks in advanced, Din.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您愿意,您可以缩小它们,但缩小十几行不会产生太大的影响。减少它们所付出的努力可能比你获得的收益还要多。
You can minify them if you want but minifying the dozen lines isn't going to make much of a difference. The amount of effort to minify them is probably more effort then the gain you will get.