-
Bug
-
Resolution: Fixed
-
Normal
-
Freshly, 8.5.0
-
Security Level: Jimmy
-
None
-
None
Steps to Reproduce
click either of the links:
<zk> <a href="#bookmark1" label="goto bookmark1"/> <a href="#bookmark2" label="goto bookmark2"/> </zk>
Current Result
most of the time 2 separate AuRequests / WsMessages are sent to the server
1. onHistoryPopState (immediately)
2. onBookmarkChange (after a delay <250ms)
Expected Result
both events should be sent at in a single request / ws message
Root Cause
onBookmarkChange relies on a fixed interval of 250ms
The check if the bookmark has changed can be triggered immediately during the event handling for onHistoryPopState to avoiding the delay and double request.
This requires exposing and calling the checkBookmark function.
Alternative is firing a client side event and listen to it from bookmark.js.
- relates to
-
ZK-3711 Support HTML5 history API
- Closed