Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当使用pjax时,disqusjs显示异常 #14

Closed
tetsaicn opened this issue Nov 18, 2018 · 3 comments
Closed

当使用pjax时,disqusjs显示异常 #14

tetsaicn opened this issue Nov 18, 2018 · 3 comments

Comments

@tetsaicn
Copy link

直接打开文章
很明显,disqus正常工作了
但是如果从首页中打开这篇文章,会造成这样的效果
image
APlayer有类似的问题,但可以通过pjax刷新时回调
if (typeof aplayers !== 'undefined'){ for (var i = 0; i < aplayers.length; i++) { try {aplayers[i].destroy()} catch(e){} } } loadMeting();
解决,不知道disqusjs该如何正常回调,或是增加原生pjax支持?

@tetsaicn
Copy link
Author

已找到相关PR: #4
README藏得太深,没看见
closed

@SukkaW
Copy link
Owner

SukkaW commented Nov 18, 2018

@tetsaicn 目前 DisqusJS 一律使用 new DisqusJS 方法创建一个 DisqusJS 实例,跳转新页面时直接重新创建一个新的 DisqusJS 实例即可。

@zhangzq
Copy link

zhangzq commented Feb 10, 2019

@tetsaicn 目前 DisqusJS 一律使用 new DisqusJS 方法创建一个 DisqusJS 实例,跳转新页面时直接重新创建一个新的 DisqusJS 实例即可。

遇到同样的问题了。重新创建一个新的也不行。就像上面截图里显示的那样,评论显示都正常,就是那个“加载中..."的一大串提示不会自动消失。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants