next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.34k stars 420 forks source link

Forced reload and error on Safari on iOS when content is too long #489

Open liushulun opened 2 years ago

liushulun commented 2 years ago

This issue happened for a long time, since NexT 7.8+, and still remains.

When a post contains a much long content (in my case, 20k~30k characters), the website keeps reloading for several times, after that an error occurred with A problem repeatedly occurred. Chrome works fine however.

Just copy & paste & paste & paste in one post, then deploy it and view it on iPhone Safari, the issue'll come up. It may be related with the memory cost, assuming there is the same issue on MacOS Safari as well.

Screenshot's below (covered cuz the company privacy):

IMG_267

welcome[bot] commented 2 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

stevenjoezhang commented 2 years ago

Could you provide an URL to test? Thanks!

Haoran-Jie commented 2 years ago

Could you provide an URL to test? Thanks!

I have the same problem, and you can check https://haoran-jie.github.io/Notes/ALCS/Chapter19.1_Algorithms/ this URL to test. Remember to use IOS and safari!

njzjz commented 2 years ago

@Haoran-Jie I can open your page without any issues.

image

Haoran-Jie commented 2 years ago

441c20e04a47745ccace713d56157eb This is so strange. The problem occurred on my phone and my friend's phone also.

@Haoran-Jie I can open your page without any issues.

njzjz commented 2 years ago

update: reproduced after refreshing

njzjz commented 2 years ago

The issue could be resolved by disabling JavaScript. There may be some issues somewhere. I think it's bookmark.

Haoran-Jie commented 2 years ago

Tested, the problem is solved by disabling the bookmark.

liushulun commented 2 years ago

Could you provide an URL to test? Thanks!

Didn't notice this reply, my bad.

I have the same problem, and you can check https://haoran-jie.github.io/Notes/ALCS/Chapter19.1_Algorithms/ this URL to test. Remember to use IOS and safari!

Yes this one is an example.

Tested, the problem is solved by disabling the bookmark.

In my case, I've never enabled 'bookmark', but it's still reproducible. Here's the part of my _config.yml:

# Bookmark Support
bookmark:
  enable: false
  # Customize the color of the bookmark.
  color: "#222"
  # If auto, save the reading progress when closing the page or clicking the bookmark-icon.
  # If manual, only save it by clicking the bookmark-icon.
  save: auto
liushulun commented 1 year ago

@Haoran-Jie

Tested, the problem is solved by disabling the bookmark.

Hi, seems you've solved this issue, but it's still bothering me now, I wonder if I'm wrong with the config of bookmark:

# Bookmark Support
bookmark:
  enable: false
  # Customize the color of the bookmark.
  color: "#222"
  # If auto, save the reading progress when closing the page or clicking the bookmark-icon.
  # If manual, only save it by clicking the bookmark-icon.
  save: auto

Is this bookmark what you mean?

Haoran-Jie commented 1 year ago

Yes. That's what I meant