Knockout .js applying bindings to large model - timeout and uncatchable exception
Posted on 2014-12-16
* JDK 1.8u25
* KnockoutJS v3.1.0
* JQuery 1.9.1
* WebView and WebEngine
We have an object in our Java environment representing a structured document. Using Java 1.8 u25.
We wish to render it in a JavaFX WebView using custom Knockout.js bindings.
When we call ko.applyBindings() on the model, we get results as follows:
When the number of ‘rows’ in the data structure is < 400, the document renders successfully.
When the number increases beyond this point, we never get past the ko.applyBindings() line in our initialising function.
We don’t appear to get meaningful, if any catchable exceptions with Knockout.js - the document fails to render and gives us some very unexpected output e.g. the output for a context which isn’t in the model.
We don't have this problem when we run the same function in the browser (Chrome)