0
我正在瀏覽google pagespeed並想過嘗試一下。我通過了幾個教程來了解相同的內容。 在教程中他們顯示每個規則都有一個關聯的score
參數。但是,我得到的響應只有每個規則的ruleImpact
參數和沒有score
參數。規則評分在Google Pagespeed中的每個規則都不可見
這是我用什麼:
這是我得到的迴應(不顯示整個響應,但只有前幾行) -
{
"kind": "pagespeedonline#result",
"id": "https://www.google.com/",
"responseCode": 200,
"title": "Google",
"score": 99,
"pageStats": {
"numberResources": 11,
"numberHosts": 4,
"totalRequestBytes": "2159",
"numberStaticResources": 9,
"htmlResponseBytes": "114193",
"imageResponseBytes": "46012",
"javascriptResponseBytes": "857355",
"otherResponseBytes": "210",
"numberJsResources": 5
},
"formattedResults": {
"locale": "en_US",
"ruleResults": {
"AvoidLandingPageRedirects": {
"localizedRuleName": "Avoid landing page redirects",
"ruleImpact": 0.0,
"urlBlocks": [
{
"header": {
"format": "Your page has no redirects. Learn more about avoiding landing page redirects.",
"args": [
{
"type": "HYPERLINK",
"value": "https://developers.google.com/speed/docs/insights/AvoidRedirects"
}
]
}
}
]
},
"EnableGzipCompression": {
"localizedRuleName": "Enable compression",
"ruleImpact": 0.0,
"urlBlocks": [
{
"header": {
"format": "You have compression enabled. Learn more about enabling compression.",
"args": [
{
"type": "HYPERLINK",
"value": "https://developers.google.com/speed/docs/insights/EnableCompression"
}
]
}
}
]
},
我做有問題?