Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Performance 解释Typekit网络请求_Performance_Http_Google Chrome Devtools_Typekit - Fatal编程技术网

Performance 解释Typekit网络请求

Performance 解释Typekit网络请求,performance,http,google-chrome-devtools,typekit,Performance,Http,Google Chrome Devtools,Typekit,有人能解释一下Typekit的下面四个网络请求吗 我不明白的是: 为什么它们的大小显示为0b,而内容显示为17.2kb(等) 这些字体文件真的有四个HTTP请求吗 无论是否启用压缩,都会报告相同的数据 开发工具说,调用是由Modernizer在下面的一行中发起的,该行的内容为bool=node.offsetTop==9 tests['touch'] = function() { var bool; if (('ontouchstart' in window) || window.D

有人能解释一下Typekit的下面四个网络请求吗

我不明白的是:

  • 为什么它们的大小显示为
    0b
    ,而内容显示为
    17.2kb
    (等)

  • 这些字体文件真的有四个HTTP请求吗

无论是否启用压缩,都会报告相同的数据

开发工具说,调用是由Modernizer在下面的一行中发起的,该行的内容为
bool=node.offsetTop==9

tests['touch'] = function() {
  var bool;

  if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) {
    bool = true;
  } else {
    injectElementWithStyles(['@media (', prefixes.join('touch-enabled),('), mod, ')', '{#modernizr{top:9px;position:absolute}}'].join(''), function(node) {
      bool = node.offsetTop === 9;
    });
  }

  return bool;
};

它们是
base64
ed-这意味着文件被转换为,然后内联到文件中。0b用于下载请求,因为它嵌入到另一个文件中,但该数据URI的内容为17.2KB

感谢您的响应。我认为没有对这些行项目发出HTTP请求是正确的吗?正确-没有发出请求,因为它包含在另一个文件中。你可以,因为和你在一起没什么用,谢谢。是的,这就是让我困惑的地方——在“网络”选项卡中看到不涉及网络请求的项目。对我来说,过滤掉这些似乎是正确的选择。