0

I'm getting an error when using Google Chrome's new auditing features (Lighthouse). I get the following message as a failed audit:

Manfiest's short_name will be truncated when displayed on homescreen

They suggest I make short_name less than 12 characters, which it already is.

manifest.json

{
  "description": "This is a description of my site",
  "lang": "en-US",
  "name": "The Very Long Title of My Site",
  "short_name": "MySite",
  "start_url": ".",
  "theme_color": "#171c28",
  "main.css": "wp-content/themes/mikedpad/style.css",
  "main.js": "wp-content/themes/mikedpad/js/main.js",
  "manifest.js": "wp-content/themes/mikedpad/js/manifest.js",
  "vendor.js": "wp-content/themes/mikedpad/js/vendor.js"
}

I'm just trying to figure out if it's something wrong on Lighthouse's end, or is there something incorrect / invalid from the manifest that's failing this audit?

4

1 回答 1

0

我在发布后几个小时发现了问题。Chrome 工具按预期工作,问题出在我的 PHP 中。一旦我的文档将正确的标签打印到<head>标签中,审核就按原样通过了。

<link rel="manifest" href="manifest.json">
于 2017-12-13T04:00:06.170 回答