(29)Before tackling any website performance issue, first verify the problem isn’t on the clientweb
招數29:數據庫
在處理網站性能問題前,首先驗證問題是否出在客戶端瀏覽器
Traditionally, many performance problems have been rooted in either the database or application server.
習慣上,許多性能問題要麼根植於數據庫或者應用服務器。服務器
However, with the proliferation of advanced JavaScript frameworks such as Backbone.js or jQuery, performance problems are increasingly starting to appear on the client.
然而,隨着先進的JavaScript框架如Backbone.js或者jQuery,性能問題正愈來愈多的出如今客戶端。app
Rather than immediately attempting to diagnose a performance problem on the server, first use a free browser-based tool such as Google Chrome Developer Tools to ensure that the problem isn’t actually occurring on the client.
首選使用一個免費的基於瀏覽器的工具如Google Chrome Developer Tools來確保這個問題並非實際發生在客戶端,而不是當即試圖在服務器上診斷性能問題。框架
You may just save yourself a lot of time tracking down performance problems on the wrong end of your site.
在錯誤終止你的站點時候會爲本身節省很多時間跟蹤性能問題。工具