Is there anything better than the Disqus Ruby Gem? Perhaps something geared specifically towards Rails?
还有什么比Disqus Ruby Gem更好的东西?也许是专门针对Rails的东西?
(The Disqus gem might be the best option, I just haven't been able to find much color one way or the other).
(Disqus gem可能是最好的选择,我只是无法找到很多颜色的方式或其他)。
4 个解决方案
#1
16
The Ruby gem's helper just embeds Disqus' native Javascript, which is bad because it loads the Disqus comments synchronously.
Ruby gem的帮助器只是嵌入了Disqus的本机Javascript,这很糟糕,因为它同步加载了Disqus评论。
Rather than make users wait, I did some hacking and got the comments to load asynchronously. Check out my blog post on the subject.
而不是让用户等待,我做了一些黑客攻击并得到了异步加载的评论。查看我关于这个主题的博客文章。
#2
7
You can always just sign up for an account for your site and stick their generic javascript into your page where you want it:
您可以随时为您的网站注册一个帐户,并将他们的通用javascript粘贴到您想要的网页中:
http://disqus.com/websites/
#3
3
Since Feb 2010 The disqus javascript will load asynchronously.
自2010年2月起,disqus javascript将异步加载。
http://blog.disqus.com/post/397517128/making-disqus-faster
http://blog.disqus.com/post/397517128/making-disqus-faster
Nothing will be waiting on Disqus to load, even if Disqus is slow to respond, and the web page will load quicker.
没有什么可以等于加载Disqus,即使Disqus响应缓慢,网页将加载更快。
Official embed code: http://help.disqus.com/customer/portal/articles/472097-universal-embed-code
官方嵌入代码:http://help.disqus.com/customer/portal/articles/472097-universal-embed-code
#4
1
I looked into this myself. There's a couple of Ruby gems, but Norman's disqus gem that you listed was the only one I could find with Rails helpers.
我亲自调查了一下。有几个Ruby宝石,但你列出的Norman的disqus gem是我唯一能找到的Rails助手。
#1
16
The Ruby gem's helper just embeds Disqus' native Javascript, which is bad because it loads the Disqus comments synchronously.
Ruby gem的帮助器只是嵌入了Disqus的本机Javascript,这很糟糕,因为它同步加载了Disqus评论。
Rather than make users wait, I did some hacking and got the comments to load asynchronously. Check out my blog post on the subject.
而不是让用户等待,我做了一些黑客攻击并得到了异步加载的评论。查看我关于这个主题的博客文章。
#2
7
You can always just sign up for an account for your site and stick their generic javascript into your page where you want it:
您可以随时为您的网站注册一个帐户,并将他们的通用javascript粘贴到您想要的网页中:
http://disqus.com/websites/
#3
3
Since Feb 2010 The disqus javascript will load asynchronously.
自2010年2月起,disqus javascript将异步加载。
http://blog.disqus.com/post/397517128/making-disqus-faster
http://blog.disqus.com/post/397517128/making-disqus-faster
Nothing will be waiting on Disqus to load, even if Disqus is slow to respond, and the web page will load quicker.
没有什么可以等于加载Disqus,即使Disqus响应缓慢,网页将加载更快。
Official embed code: http://help.disqus.com/customer/portal/articles/472097-universal-embed-code
官方嵌入代码:http://help.disqus.com/customer/portal/articles/472097-universal-embed-code
#4
1
I looked into this myself. There's a couple of Ruby gems, but Norman's disqus gem that you listed was the only one I could find with Rails helpers.
我亲自调查了一下。有几个Ruby宝石,但你列出的Norman的disqus gem是我唯一能找到的Rails助手。