Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
JavaRanch » Java Forums » Java » Applets
Bookmark "Loading of applet is too slow" Watch "Loading of applet is too slow" New topic

Loading of applet is too slow

Bharani Lingamaneni

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

Joined: Oct 14, 2005
Posts: 19973

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

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?
I agree. Here's the link:
subject: Loading of applet is too slow
It's not a secret anymore!