next-theme / next-theme/hexo-theme-next

next_vendors 默认 defer 破坏了 script 块加载顺序

Open
#951 18 comments 0 reactions 0 assignees View on GitHub

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
Expected behavior

所有 script 代码块都应在依赖加载完成后执行

Actual behavior

依赖会在代码块执行后加载

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.