简体   繁体   中英

Java Applet and Browser Freeze

Is there a best practice for avoiding a browser freeze when loading an applet?

For my precise needs, the applet needs to be loaded when the web application is initialized, and is not a visual component (will be in a hidden div or hidden iframe).

As a reference, here is an old bug on SUN's side .

Essentially, no there is not. Read the evaluation section of the bug you linked to. The issue is one of startup time for the JVM. About the best you can do is to keep the applet small so that it will load quickly. However, the browser freeze is happening because the browser has to wait for the VM to start. You can't ever drop that time to 0, so a short freeze is unavoidable.

1.6.0u10将对大多数浏览器有很大帮助,但是对于较旧的vms,无法避免浏览器冻结。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM