开发者

Javascript library to reliably delay-load java applets

开发者 https://www.devze.com 2023-01-02 15:15 出处:网络
I\'d like to delay-load a Java Applet in the same way that SwfObject loads Flash SWFs-- you supply it a div id and it replaces the div\'s content开发者_高级运维s.This would allow the whole page to loa

I'd like to delay-load a Java Applet in the same way that SwfObject loads Flash SWFs-- you supply it a div id and it replaces the div's content开发者_高级运维s. This would allow the whole page to load before the Applet starts.

However, I'd also like to use a best-practices Javascript library like deployJava.js or applet-fu. The problem with these libraries is that they only use document.writeln-- if you use them after the DOM loads they will clobber the page.

Are there any Applet-loading JavaScript libraries that allow for delay-loading?


See java equivalent of swfobject

In short, you don't need a huge library. If you don't care about detecting if java is installed, you don't need any libraries. Just add a placeholder and replace its contents with .innerHTML.

0

精彩评论

暂无评论...
验证码 换一张
取 消