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

perf(tag/code): performance improvements #4416

Merged
merged 2 commits into from
Jul 14, 2020
Merged

Conversation

SukkaW
Copy link
Member

@SukkaW SukkaW commented Jul 14, 2020

What does it do?

  • lazy require prismHighlight & highlight.js for faster code start.
  • shorthand for code tag by return code early when no highlight is enabled.

How to test

git clone -b BRANCH https://github.com/USER/hexo.git
cd hexo
npm install
npm test

Screenshots

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.

Sorry, something went wrong.

@SukkaW SukkaW requested review from himself65 and a team July 14, 2020 14:12
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 97.749% when pulling 2ba34e9 on SukkaW:lazy-require into 17ee23f on hexojs:master.

@SukkaW SukkaW merged commit e3baad9 into hexojs:master Jul 14, 2020
@SukkaW SukkaW mentioned this pull request Jul 25, 2020
22 tasks
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

Successfully merging this pull request may close these issues.

None yet

3 participants