更新最新版AndroidSDK(4.x)后打开里面的DOC文档非常缓慢的解决办法

手贱点了升级到最新的DOC,结果就悲剧了,打开会等得想砸机器
猜想就是现在敏感时期的结果了,只能自己动手

用firebug 一看果然会在线连接一些网站,记录了一下用到以下的域名

www.google.com
picadaweb.google.com
accounts.google.com
#android 新版文档用到的
fonts.googleapis.com
apis.google.com
ajax.googleapis.com
www.google-analytics.com
themes.googleusercontent.com
#文档用到的还不能解析的
plusone.google.com
1.bp.blogspot.com

怎么整我就不多说了,如果这些站被强,就会严重影响打开速度鸟,最好的办法是改host让他不被强,最简单的办法全部改成  127.0.0.1 ,悲剧就是谷歌的某些东西用不鸟了。
当然把网线断了也是可以的。

后来发现有一个地址始终打不开,如下
/fastbutton?bsv&size=medium&hl=en-US&origin=file%3A%2F%2F&url=file%3A%2F%2F%2FD%3A%2Fandroid-sdk-windows%2Fdocs%2Fguide%2Fcomponents%2Factivities.html&ic=1&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fgapi%2F__features__%2Frt%3Dj%2Fver%3DWZ0PtD2fdac.zh_CN.%2Fsv%3D1%2Fam%3D!9YrXPIrxx2-ITyEIjA%2Fd%3D1%2Frs%3DAItRSTPhBfnLRSWQYLe8cVz3TlqBUxSO_g#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Conload&id=I0_1352941293413&parent=file%3A%2F%2F
解码后
/fastbutton?bsv&size=medium&hl=en-US&origin=file://&url= file:///D:/android-sdk-windows/docs/guide/components/activities.html&ic=1&jsh=m;/_/apps-static/_/js/gapi/__features__/rt=j/ver=WZ0PtD2fdac.zh_CN./sv=1/am=!9YrXPIrxx2-ITyEIjA/d=1/rs=AItRSTPhBfnLRSWQYLe8cVz3TlqBUxSO_g#_methods=onPlusOne,_ready,_close,_open,_resizeMe,_renderstart,oncircled,onload&id=I0_1352941293413&parent=file://

尼玛,这样引用本地地址要能起作用就怪了

查找
file:///D:/android-sdk-windows/docs/guide/components/activities.html 
对应的在线文档地址打开
http://developer.android.com/guide/components/activities.html

抓到对应的
https://plusone.google.com/_/+1/fastbutton?bsv&size=medium&hl=en-US&origin=http%3A%2F%2Fdeveloper.android.com&url=http%3A%2F%2Fdeveloper.android.com%2Fguide%2Fcomponents%2Factivities.html&ic=1&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fgapi%2F__features__%2Frt%3Dj%2Fver%3DWZ0PtD2fdac.zh_CN.%2Fsv%3D1%2Fam%3D!9YrXPIrxx2-ITyEIjA%2Fd%3D1%2Frs%3DAItRSTPhBfnLRSWQYLe8cVz3TlqBUxSO_g#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Conload&id=I0_1352941758433&parent=http%3A%2F%2Fdeveloper.android.com
解码
https://plusone.google.com/_/ 1/fastbutton?bsv&size=medium&hl=en-US&origin=http://developer.android.com&url= http://developer.android.com/guide/components/activities.html&ic=1&jsh=m;/_/apps-static/_/js/gapi/__features__/rt=j/ver=WZ0PtD2fdac.zh_CN./sv=1/am=!9YrXPIrxx2-ITyEIjA/d=1/rs=AItRSTPhBfnLRSWQYLe8cVz3TlqBUxSO_g#_methods=onPlusOne,_ready,_close,_open,_resizeMe,_renderstart,oncircled,onload&id=I0_1352941758433&parent=http://developer.android.com

一个脚本,最后发现对应页面上的 Google+1 按钮,尼玛啊,plus 这玩意在天朝是严重禁止的,你说能打开就好了。
最后改 host
127.0.0.1 plusone.google.com
就这一行,前面的host全删了,发现貌似好了很多呐,不用改那么多了,不过只测试了chrome,其他浏览器未测试

你可能感兴趣的:(更新最新版AndroidSDK(4.x)后打开里面的DOC文档非常缓慢的解决办法)