/    Sign up×
Community /Pin to ProfileBookmark

How to delay applet loading?

Hi,
An applet generally causes a large delay in webpage loading. I am looking for a javascript that would load an applet after the entire page is loaded, or possibly with a fixed delay time?
One suggestion I got in another forum was to put
<div id=”applet”></div> and then the following code right before </body> tag:

[CODE]<script type=”text/javascript”>//<![CDATA[
document.getElementById(‘applet’).innerHTML = ‘<applet code=”myapplet.class”></applet>’;
//]]></script>[/CODE]

This code seems to work only partially- the top portion of the page above <div id=”applet”></div> loads fast, but then the browser freezes until the applet is loaded.

I wonder if anyone has any other suggestions?
Thanks,
Lzr

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayOct 19.2008 — May be able to use the Declare attribute of the object and then instantiate after page load:

http://www.w3.org/TR/html4/struct/objects.html#edef-OBJECT
×

Success!

Help @lzr spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...