X

Give your JavaFX apps a startup performance boost

Here's a trick to improve the start up performance of JavaFX apps.

All you need to do is one line addition to your JNLP files.

<update check="background"/>

The update element is used to indicate the preferences for how application updates should be handled by Java Web Start is not set right. The update element can contain the following optional attribute:

check attribute: The check attribute indicates the preference for when the JNLP Client should check for updates, and can have one of the three values:

  1. "always": always check for updates before launching the application.
  2. "timeout" (default): check for updates until timeout before launching the application. If the update check is not completed before the timeout, the application is launched, and the update check will continue in the background.
  3. "background": launch the application while checking for updates in the background.

option 3 will improve the JavaFX app startup time.

Happy JavaFXing!

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.