jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly

Home Page:https://butterfly.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Artalk评论组件在使用pjax情况下无法正常加载

XenWayne opened this issue · comments

使用的 Butterfly 版本? | What version of Butterfly are you use?

4.13.0

是否修改过主题文件? || Has the theme files been modified?

是 (Yes)

使用的瀏覽器? || What browse are you using?

Chrome

使用的系統? || What operating system are you using?

Windows

依賴插件 | Package dependencies Information

dependencies:
hexo 7.2.0                     hexo-generator-index 3.0.0     hexo-renderer-stylus 3.0.1
hexo-artitalk-static 0.0.4     hexo-generator-search 2.4.3    hexo-server 3.0.0
hexo-browsersync 0.3.0         hexo-generator-tag 2.0.0       hexo-theme-butterfly 4.13.0
hexo-deployer-git 4.0.0        hexo-renderer-ejs 2.0.0        hexo-wordcount 6.0.1
hexo-generator-archive 2.0.0   hexo-renderer-marked 6.3.0
hexo-generator-category 2.0.0  hexo-renderer-pug 3.0.0

問題描述 | Describe the bug

使用artalk评论组件,开启pjax,从首页直接点进文章,评论组件空白。
手动刷新页面后正常。

# Comments System
# --------------------------------------

comments:
  # Up to two comments system, the first will be shown as default
  # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/Artalk
  use: Artalk # !评论系统 Valine,Disqus
  text: true # Display the comment name next to the button
  # lazyload: The comment system will be load when comment element enters the browser's viewport.
  # If you set it to true, the comment count will be invalid
  lazyload: false
  count: true # Display comment count in post's top_img
  card_post_count: true # Display comment count in Home Page

出現問題網站 | Website

https://beta.xenwayne.top

正常啊 你的网站

正常啊 你的网站

从首页点进helloworld那个文章么

image

是不是你浏览器版本太低了

你f12 看什么报错

经过多次尝试后我确定这不是Butterfly本身的问题,在本地环境下无法复现。
是Cloudflare rocket-loader和auto minify的问题,其优化js的方式似乎影响了pjax的工作。
多有打扰。