Enhance AjaxServerAndClientTimeFilter to use HTML5's Navigation Timing API
--------------------------------------------------------------------------

                 Key: WICKET-4216
                 URL: https://issues.apache.org/jira/browse/WICKET-4216
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.6.0
         Environment: All
            Reporter: Robert McGuinness
            Priority: Trivial


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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to