My applets are big and it takes much time to download (on browser) when a networ
JavaFAQ Home » Java Applets
Question: My applets are big and it takes
much time to download (on browser) when a network is slow.
Is there any way to decrease the start up time?
Answer: The good solution is to make a
small core .jar file that contains part applet that is necessary to start it up
(initial GUI elements) and rest of classes can be loaded later when applet is
already running. Nobody use 100 % of functionality directly and will give an
impression that everything is ready...
This solution is good due to another reason also. If browser lost connection
during loading of one big .jar file you need to start everything from scratch.
If it happens with our solution browser will cash part of classes and it will
save time for reloading!
Usually you don’t need all the functionality of the applet at once, so the
applet can operate before all of its possible functionality is downloaded. And
.jar and .class files does get cached by most browsers.
Printer Friendly Page
Send to a Friend
Search here again if you need more info!