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

為何訪問速度奇慢呢 #534

Closed
myhongkongzhen opened this issue Nov 26, 2015 · 6 comments
Closed

為何訪問速度奇慢呢 #534

myhongkongzhen opened this issue Nov 26, 2015 · 6 comments

Comments

@myhongkongzhen
Copy link

您好,非常喜歡您製作的主題,非常簡潔,但是不論是本地localhost:4000還是發佈網站上,訪問速度奇慢,打開首頁,幾乎需要1分鐘的時間,即使是在本地,也是這樣,不知是我操作有誤,還是主題包含了太多JS,CSS素材所累?

@iissnan
Copy link
Owner

iissnan commented Nov 27, 2015

本地若打开同样非常慢,应该不是资源文件(CSS、JS)多导致的问题。可以使用 Google Chrome 的 Network Panel 看下什么请求占用太多的时间。

@Cering
Copy link

Cering commented Dec 3, 2015

看看主题的_config.yml文件里use_font_lato: false这项是不是false
如果是true的话,会加载google的Lato字体?反正没翻墙的话会特别慢。。。
之前同为这个问题纠结了好久。。。

@myhongkongzhen
Copy link
Author

@Cering 哇塞,真的哎,把您說的這個屬性改為false之後,無論是本地還是部署以後,頁面簡直就是秒開!THX!

@Cering
Copy link

Cering commented Dec 3, 2015

@myhongkongzhen ,不客氣哈,我也剛用這個主題不久,還在學習中:)

@eurusd
Copy link

eurusd commented Dec 17, 2015

那用什么字库代替呢?关闭后字体不好看呢。

@myhongkongzhen
Copy link
Author

@eurusd 那個 我都用的 是 "Courier New" , MingLiU 這兩個字體,英文是前面的,中文是後面的那個
我喜歡這兩個字體。所以自己修改了樣式文件,把所有字體的地方都換成了這兩個。
你也可以手動替換自己喜歡的字體,或者將你喜歡的字體下載到本地加載,應該就會快了。

@iissnan iissnan closed this as completed Mar 15, 2016
yzbyzz pushed a commit to yzbyzz/hexo-theme-next that referenced this issue Jan 4, 2019
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

4 participants