*
The moose likes Applets and the fly likes Loading of applet is too slow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Loading of applet is too slow" Watch "Loading of applet is too slow" New topic
Author

Loading of applet is too slow

Bharani Lingamaneni
Greenhorn

Joined: Jan 31, 2014
Posts: 2
We are using an applet in our web application. The applet of our application is dependent on bouncycastle jar,bcprov-jdk15.jar and few other jar's whose size comes around 4 mb. When using the appliaction on jre7, the applet is taking too long time to load than usual time. Is there any way to place these jar's in client machine? Will it improve the performance? Is there any other way to reduce the loading time of applet apart from placing jars in client machine?
Thanks in Advance.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The Java plugin will cache the jars as long as they don't change, so the long download time will only apply to a user's first time using the applet.

As for placing the jars in the client machine: if you have that kind of access to your clients, why not just write a plain old Java application and place the whole thing, jars and all, in their machines?
Bharani Lingamaneni
Greenhorn

Joined: Jan 31, 2014
Posts: 2
Thanks Paul Clapham . I have observer that in my application the jars were being downloaded every time not only for the first time. I have added <param name="classloader_cache" value="true" />. But even after this the jar's were cached randomly. <param name="cache_archive" value="xxxx.jar"/> tried with this also but the result is same. Any suggestions to catch jar's apart from these? In the starting of my application itself Cache-control,Pragma etc... were set to no-cache , will this be an issue?
 
jQuery in Action, 2nd edition
 
subject: Loading of applet is too slow
 
Similar Threads
Call DLL file signed applet
Loading Images from the Local machine
java applet calling jar files....
Applet loads very slowly!
can library jars be inside an ejb jar?