====== Google Analytics 拖慢 Firefox ====== 這一、兩年來陸續在使用 Firefox 看到部分網站讀取時一直等待 Google Analytics,不僅嚴重拖慢網頁讀取速度,甚至 Firefox 還會開始轉彩球(Mac OS X 上程式無回應)。 剛一查發現還真的有這問題 [[http://superuser.com/questions/611370/tired-of-waiting-for-www-google-analytics-com-can-a-browser-setting-opt-me-o|Tired of waiting for www.google-analytics.com -- can a browser setting "opt me out"? - Super User]] 網友推薦的 Firefox addon(連 MAO 網站自己好像也搭配 Google Analytics 啊!): - [[https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/?src=search|uBlock Origin :: Add-ons for Firefox]] - [[https://addons.mozilla.org/en-US/firefox/addon/requestpolicy/|RequestPolicy :: Add-ons for Firefox]] - NoScript 或是不要再額外裝 Firefox plugin,直接暴力修改 ''/private/etc/hosts'' 把 Google Analytics 擋掉呢?我先加上了 0.0.0.0 www.google-analytics.com 0.0.0.0 google-analytics.com 0.0.0.0 ssl.google-analytics.com 一邊觀察成效的同時,另外也搜尋一下如何對付 gstatic.com ☞ [[https://www.google.com.tw/search?q=gstatic.com+slows+down+firefox&ie=utf-8&oe=utf-8&gws_rd=cr&ei=B4JQWIjbOoHg0gTquK_ABA|gstatic.com slows down firefox - Google 搜尋]] * [[http://superuser.com/questions/64716/i-regularly-see-gstatic-com-in-the-status-bar-what-is-that-domain|web - I regularly see gstatic.com in the status bar, what is that domain? - Super User]] * [[http://en.freelander.es/consumer/gstatic/|gstatic.com makes websites slow | the freelander]] * …… 再繼續研究看看好了,先觀察暴力擋 Google Analytics 有無成效。