This rule is triggered when PageSpeed Insights detects that your server response time exceeds 200 milliseconds.
Server response time represents the time needed to load the necessary HTML to start rendering the web page hosted by the server, minus the network latency between Google and the server. The time taken for each run may vary, but the difference should not be too great. In fact, if the server response time varies greatly, it may indicate that there may be a performance problem.
您應(yīng)將服務(wù)器響應(yīng)時(shí)間控制在200毫秒以內(nèi)。有很多潛在因素都可能會(huì)延緩服務(wù)器響應(yīng),例如應(yīng)用邏輯緩慢、數(shù)據(jù)庫(kù)查詢緩慢、路由緩慢、框架、庫(kù)、資源CPU不足或內(nèi)存不足等。您需要考慮所有這些因素,才能改善服務(wù)器的響應(yīng)時(shí)間。要找到服務(wù)器響應(yīng)時(shí)間過長(zhǎng)的原因,首先要進(jìn)行測(cè)量。然后,準(zhǔn)備好相關(guān)數(shù)據(jù),并參閱有關(guān)如何解決該問題的相應(yīng)指導(dǎo)。問題解決后,您必須繼續(xù)測(cè)量服務(wù)器響應(yīng)時(shí)間,并解決將來(lái)出現(xiàn)的性能瓶頸問題。
?
Except as other written, the content of this page is licensed under theCreative Commons Attribution 3.0 License, and code samples are licensed under the?Apache 2.0 License. For details, see our?Site Policies.