/    Sign up×
Community /Pin to ProfileBookmark

play game while another page loads

I have a huge presentation which takes over a minute to load. And every time users access it, they always end up closing the window thinking that it is frozen. My question is, is it possible to play a javascript game simultaneously while my page is loading? this way, the users know that the page is still loading and the game will keep them busy while waiting…
If it is possible, how do i do it?
Btw, I also use frontpage for the web site…

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryAug 28.2003 — You could pop the JS game up in another window when the presentation starts to load, then close the window again when it is fully loaded. To open the new window, use something like this:

gameWindow = window.open('game.html', '', 'height=300,width=300');

You can then close it with:

gameWindow.close();

Adam
×

Success!

Help @inarts 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.28,
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,
)...