next-theme / next-theme/hexo-theme-next
next_vendors 默认 defer 破坏了 script 块加载顺序
Open
Nobody has claimed this yet.
Bug
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 493
- Avg merge
- 12h 45m
- Merged PRs (30d)
- 1
Description
Issue Checklist
- I am using NexT version 8.0 or later.
- I have already read the Troubleshooting page of Hexo and Troubleshooting page of NexT.
- I have already searched for current issues, which does not help me.
Expected behavior
所有 script 代码块都应在依赖加载完成后执行
Actual behavior
依赖会在代码块执行后加载
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the theme's next_vendors setting and how script blocks are rendered, then reproduce the page with a dependency and a dependent script block. Done means dependencies load before every script block executes, with a regression check for that ordering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100