Closed njzjz closed 3 years ago
Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。
I am wondering if we can use https://cdn.jsdelivr.net/npm/hexo-theme-next@8.2.1/source/js/utils.min.js (ends with .min.js) instead of https://cdn.jsdelivr.net/npm/hexo-theme-next@8.2.1/source/js/utils.js (ends with .js). The minified package is smaller than the original one.
.min.js
.js
Something like:
if (url.endsWith('.js') && ! url.endsWith(".min.js")) { url = url.slice(0,-3) + ".min.js"; }
Currently, all scripts from jsdelivr are not minified.
提错仓库了……
Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
I am wondering if we can use https://cdn.jsdelivr.net/npm/hexo-theme-next@8.2.1/source/js/utils.min.js (ends with
.min.js
) instead of https://cdn.jsdelivr.net/npm/hexo-theme-next@8.2.1/source/js/utils.js (ends with.js
). The minified package is smaller than the original one.Something like:
Actual behavior
Currently, all scripts from jsdelivr are not minified.
Steps to reproduce the behavior
Other Information