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

压缩 HTML,进一步提升加载速度,参考 #110

Open
mzlogin opened this issue May 2, 2020 · 2 comments
Open

压缩 HTML,进一步提升加载速度,参考 #110

mzlogin opened this issue May 2, 2020 · 2 comments

Comments

@mzlogin
Copy link
Owner

mzlogin commented May 2, 2020

https://zhang0peter.com/2020/01/27/jekyll-inline-css/
https://mayanbin.com/post/compress-html-in-jekyll.html
http://jch.penibelst.de/

mzlogin added a commit that referenced this issue May 2, 2020
@mzlogin
Copy link
Owner Author

mzlogin commented May 3, 2020

压缩 HTML 过程中出现过两种问题:

Uncaught SyntaxError: Unexpected end of input

原因是内嵌 js 里有 // 注释

Uncaught SyntaxError: Unexpected identifier

原因是内嵌 js 里表达式没用 ; 结尾,压缩后报错

@mzlogin
Copy link
Owner Author

mzlogin commented May 28, 2020

可以考虑将搜索使用的 json,通过 ci 推到别的分支,然后通过 jsdelivr 引用。

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

No branches or pull requests

1 participant