[
https://issues.apache.org/jira/browse/WICKET-4216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14169266#comment-14169266
]
Martin Grigorov commented on WICKET-4216:
-----------------------------------------
Or solution like https://github.com/zeman/perfmap is even more unobtrusive.
> 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: 6.0.0-beta1
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)