vuepress-reco / vuepress-theme-reco

🎨 This is the repo for vuepress-theme-reco 2.
https://vuepress-theme-reco.recoluan.com
MIT License
538 stars 173 forks source link

To decide whether prefetch js files manually #205

Closed yxzlwz closed 1 year ago

yxzlwz commented 1 year ago

It is too heavy to prefetch all js files when open the website, which causes meaningless network and storage waste, and makes it more difficult to update content.

So I suggest add a setting to decide whether add prefetch to the html file when build. It seem easy to realise - just delete <!--vuepress-ssr-resources--> from index.build.html

wstee commented 1 year ago

You can set shouldPrefetch: false in config file.

yxzlwz commented 1 year ago

Thx