Contributed by Ambrose Bonnaire-Sergeant
Starting cljfx takes a little while--even with AOT-compiled sources. This example shows how to make a splash screen that loads very quickly via JavaFX preloaders.
Once cljfx is ready, the splash screen will be replaced by the cljfx UI.
Run with splash screen:
lein run
Run via uberjar:
lein uberjar
java -jar target/splash-0.1.0-SNAPSHOT-standalone.jar
Run without splash screen (interactive workflow):
lein repl
...
splash=> (-main)
#object[clojure.lang.Delay 0x74132450 {:status :pending, :val nil}]