用戶在打開Github網站的時候,可能會遇到網站響應超時,圖片加載不出,排版錯誤等狀況(大部分狀況下是能夠正常打開的)。我就遇到了這樣的問題,因此在此和你們分享,但願能夠幫到有一樣困擾的人。css
網站響應緩慢(網絡良好的狀況下等了將近15s),排版錯誤,圖片加載不出。git
以我使用的360安全瀏覽器爲例,F12打開開發者選項,能夠看到以下報錯信息:github
能夠看出,是Github須要在線加載的資源(css,js)文件未能成功加載。瀏覽器
爲了提升速度,能夠使用HOSTS加速對Github網站加載的資源網站域名解析。安全
具體作法:網絡
修改 C:\Windows\System32\drivers\etc 中的hosts文件(PS:若沒有修改權限,能夠鼠標右鍵,屬性,安全,修改權限。或者將hosts文件複製到桌面,修改以後,複製到原文件夾),將下面一段話添加到hosts文件中:網站
# GitHub Start
192.30.253.112 github.com
192.30.253.119 gist.github.com
151.101.100.133 assets-cdn.github.com
151.101.100.133 raw.githubusercontent.com
151.101.100.133 gist.githubusercontent.com
151.101.100.133 cloud.githubusercontent.com
151.101.100.133 camo.githubusercontent.com
151.101.100.133 avatars0.githubusercontent.com
151.101.100.133 avatars1.githubusercontent.com
151.101.100.133 avatars2.githubusercontent.com
151.101.100.133 avatars3.githubusercontent.com
151.101.100.133 avatars4.githubusercontent.com
151.101.100.133 avatars5.githubusercontent.com
151.101.100.133 avatars6.githubusercontent.com
151.101.100.133 avatars7.githubusercontent.com
151.101.100.133 avatars8.githubusercontent.com
# GitHub Endspa
以上信息來源於網站:http://neue.v2ex.com/t/320178,感謝評論區chenxuhua的分享。cdn
保存hosts文件,從新打開Github網站,一切正常。blog