Let's bring this back on the list - i once more accidentally replied
just to you.
IMHO if you want to execute javascript which is not related to a
browser/html you should run that in a javascript vm like nashorn, ...
and not through the WebView.
Tom
On 08.12.15 15:39, Rahman USTA wrote:
> I hand
Yes your suggestion is OK in theory but in practice, Nashorn is too slow
without Warmup. I can say Nashorn is 5x to 10x slower than embedded webkit
to run script.
2015-12-08 15:09 GMT+02:00 Benjamin Gudehus :
> The JavaFX API offers Worker class for long running tasks.
>
> If you want to execute
The JavaFX API offers Worker class for long running tasks.
If you want to execute JavaScript code without DOM and JavaFX you can use
the Nashorn JS Virtual machine, which is included in Java 8. I guess the
Nashorn documentation also has examples how it's used with the Java
scripting API.
On Dec 8,
I'm really enjoying developing apps in JavaFX, but I think there is a
limitation point;
When we think HTML5, there is WebWorker to run long-running tasks in
another process. So, we know WebWorker has no DOM access, it is generally
used computational needs.
Ok, We can run long-running tasks in Jav