How to Improve JavaFX Application Startup Time
- Skill Level Intermediate
- Product JavaFX
- Key Features Performance
- Last Updated March 2009
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:
<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:
alwaysmeans 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.backgroundmeans 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.
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 repliesyour information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.
Irina Fedortsova
Technical Writer, Sun Microsystems