Home  >  Q&A  >  body text

spring - Java Web如何获取页面加载时间并显示

迷茫迷茫2712 days ago739

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-18 10:13:16

    In fact, this is the work done by the front end, not the work done by the back end

    The backend can count up to the time from client request to server response, but the backend cannot count the resources statically referenced by the page and the execution time of some front-end code business logic

    On the contrary, the front-end can count the processing time of the server and the time of the front-end processing its own business

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:13:16

    At the beginning of page rendering, get the current time from js, and then after window.onload, get the current time and compare it? (I guess...)

    reply
    0
  • Cancelreply