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:build] control BundleRenderer shouldPrefetch option #463

Closed
ghys opened this issue May 17, 2018 · 1 comment
Closed

[feat:build] control BundleRenderer shouldPrefetch option #463

ghys opened this issue May 17, 2018 · 1 comment
Labels
contribution welcome Contributions welcome type: feature request Request to add a new feature

Comments

@ghys
Copy link
Contributor

ghys commented May 17, 2018

VuePress leaves the BundleRenderer's shouldPrefetch option unset - it used to be () => false but was disabled then removed by @yyx990803 here:

9719bc3#diff-26b681bd4dac10f25d5293c7595c435bL56

The VuePress documentation site I'm building has 400+ pages, prefetching everything is a bit overkill and a bandwidth/server hog. I'd like to suggest a "prefetch" option in options.siteConfig to let the user control the prefetching in config.js. Could be either a boolean or the actual function expected in createBundleRenderer. If unset, the option will not be set and the current behavior will remain.

@ulivz ulivz added the type: feature request Request to add a new feature label May 18, 2018
@ulivz
Copy link
Member

ulivz commented May 18, 2018

PR welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome Contributions welcome type: feature request Request to add a new feature
Projects
None yet
Development

No branches or pull requests

2 participants