V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
minglanyu
V2EX  ›  全球工单系统

简书的同学,生产的 console.log 是要干嘛

  •  
  •   minglanyu · 2019-08-11 22:58:34 +08:00 · 2067 次点击
    这是一个创建于 1691 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://www.jianshu.com

    Chrome DevTools 的 console

    不过 lifecycle 里的各种耗时时间挺有意思

    是不是忘删 console.log 了 哈哈

    Release: production-20190811033856
    Environment: production
    {
      "link": "https://www.jianshu.com/p/4ced94958e13",
      "times": {
        "alltime": 1158,
        "details": {
          "redirect": 0,
          "dns": 0,
          "ttfb": 496,
          "static": 495,
          "render": 660,
          "onload": 1565534859918
        },
        "lifecycle": {
          "_1": {
            "key": "redirect",
            "desc": "网页重定向的耗时",
            "value": 0
          },
          "_2": {
            "key": "cache",
            "desc": "检查本地缓存的耗时",
            "value": 0
          },
          "_3": {
            "key": "dns",
            "desc": "DNS 查询的耗时",
            "value": 0
          },
          "_4": {
            "key": "tcp",
            "desc": "TCP 连接的耗时",
            "value": 0
          },
          "_5": {
            "key": "request",
            "desc": "客户端发起请求的耗时",
            "value": 493
          },
          "_6": {
            "key": "response",
            "desc": "服务端响应的耗时",
            "value": 2
          },
          "_7": {
            "key": "render",
            "desc": "渲染页面的耗时",
            "value": 660
          },
          "__": 1155
        }
      },
      "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"
    }
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5270 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:21 · PVG 17:21 · LAX 02:21 · JFK 05:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.