Synchronizing with Server Warning Message
Problem
When I try to move the cursor in the document, Oxygen XML Web Author displays a Synchronizing with server warning message.
Cause
Oxygen XML Web Author has a server-side representation of the document that is continuously synchronized with the document that the user edits in the web browser. This synchronization is performed using HTTP requests and is asynchronous.
If the HTTP requests take a high latency, the next user interaction is blocked and a Synchronizing with server warning message is displayed.
The most common causes for having a high latency are the following:
- The network connection between the web browser and the server has a high latency.
- The CSS used to render the XML document contains complex constructs and cause large
parts of the document rendering to be invalidated. Some examples of complex constructs
are:
- The
oxy_xpath()
CSS function. - CSS selectors such as: subject selector, sibling selectors, positional
selectors (e.g.
:nth-child
).
- The
- Extensions such as a
StylesFilter
that is slow to execute.
Solution
To mitigate this problem, you can try to:
- Use a faster network connection.
- Rewrite the CSS to use more optimized selectors.
- Optimize the custom extensions that cause the application to be slow.