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

feat(client): add VPLink #1435

Closed
wants to merge 11 commits into from
Closed

feat(client): add VPLink #1435

wants to merge 11 commits into from

Conversation

Mister-Hope
Copy link
Member

@Mister-Hope Mister-Hope commented Nov 20, 2023

This avoids resolving page data of the destination path with <router-link>

Also the built-in resolve in @vuepress/client has higher performance than router.resolve

Note: For performance consideration, <VPLink /> does not have a built-in active state. You should handle this yourself while using it.

This PR is based on the new router built, and replace #1353

@Mister-Hope
Copy link
Member Author

Mister-Hope commented Nov 20, 2023

Ci result while finishing official docs page-render stage:

Before(main): 2.5-3.9s
After: 1.4-2.8s

Local test result with a 1 million words project https://innenu.com:

Before(main): 186.22s
After: 108.11s

@Mister-Hope Mister-Hope closed this Dec 4, 2023
@meteorlxy meteorlxy deleted the vp-link branch December 14, 2023 10:03
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.

1 participant