Hexo NextT Enhance Performance Posted on 2021-09-08 Edited on 2024-07-03 In Hexo Views: Disqus: Symbols count in article: 953 Reading time ≈ 2 mins.Hexo NextT Enhance Performance這篇介紹How to enhance Hexo NextT Performance。quicklink123456789101112131415161718192021Google Chrome Labs推出quicklink,用以實現prefetch。https://github.com/GoogleChromeLabs/quicklink/功能:先預載可能要用的資源,達到在使用時是順暢的體驗。安裝lib:$ npm install --save quicklink修改 /themes/next/_config.ymlquicklink: enable: true # Home page and archive page can be controlled through home and archive options below. # This configuration item is independent of `enable`. home: true archive: true vendors: quicklink: //cdn.jsdelivr.net/npm/[email protected]/dist/quicklink.umd.jsmemo: quicklink版本要設定為最新版,F12查看console才不會有錯誤訊息。hexo-neat1234567891011121314151617181920212223242526功能:靜態資源壓縮安裝lib:$ npm install hexo-neat --save修改 /root/_config.ymlneat_enable: trueneat_html: enable: true exclude: neat_css: enable: true exclude: - '**/*.min.css'neat_js: enable: true mangle: true output: compress: exclude: - '**/*.min.js' - '**/jquery.fancybox.pack.js' - '**/index.js' - '**/fireworks.js'memo:在最下方加入即可