Wicket
  1. Wicket
  2. WICKET-4216

Enhance AjaxServerAndClientTimeFilter to use HTML5's Navigation Timing API

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0-beta1
    • Fix Version/s: None
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      All

      Description

      in AjaxServerAndClientTimeFilter.java, instead of:

      map.put("clienttime", "' + (new Date().getTime() - clientTimeVariable)/1000 + 's");

      Wicket could use:

      map.put("clienttime", "' + (new Date().getTime() - performance.timing.navigationStart)/1000 + 's");

      which could output something like:

      Server parsetime: .01s, User-perceived page loading time: .02s

      https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert McGuinness
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development