search

Home  >  Q&A  >  body text

python - 用 flask 做网站 如何做页面加载时间?

很多网站最下面都会显示 XXms 这类加载时间,我是用 flask 搭的网站,请问有这类的插件或者这类是如何实现的?

PHP中文网PHP中文网2888 days ago386

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:39:20

    Load a script from the head of the web page, load a script from the head of the web page, and record the time after completion, but the top Js will less calculate the time required to parse the HTML and that js. Chrome has its own API, and you can clearly see various information about loading time. In addition, there is also a dedicated answer to this on Zhihu https://www.zhihu.com/question/24889192/answer/29370267

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:39:20

    Just write a decorator yourself~

    reply
    0
  • Cancelreply