How to Improve JavaFX Application Startup Time

This simple startup performance improvement shows how you can increase user satisfaction.

Whenever your JavaFX application is launched by using the Java Web Start technology, the JNLP client checks for updates. You can improve the startup time of your JavaFX application if you enable update checks to be performed in the background. Add the following line to the JNLP file:

Source Code
<jnlp>
<update check="background"/>
</jnlp>


The update element indicates the preferences for how application updates should be handled by Java Web Start software. Its check attribute can have one of the following values:

  • always means to always check for updates before launching the application.

  • timeout, a default value, means to 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 continues in the background.

  • background means to launch the application and to check for updates in the background.

You are strongly encouraged to use the background value, as it enables the application to be launched as quickly as possible.

Ensure that an xml tag is closed properly and has a / character at the end, as the previous code example shows. Otherwise this parameter might be ignored by the xml parser, and the update check will not occur before the application starts.

Rate This Article
Discussion

We welcome your participation in our community. Please keep your comments civil and on point. You may optionally provide your email address to be notified of replies—your information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.

 

English
日本語
한국어
简体中文
русский
Português do Brasil