/    Sign up×
Community /Pin to ProfileBookmark

images loads before script.

i have a problem were the images loads before the scripts are executed. So my javascript menu looks like skit before all the images are loaded.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangSep 28.2007 — Your sentences are contradictory ?

Why is the menu reliant on JavaScript and images?
Copy linkTweet thisAlerts:
@alexejauthorSep 28.2007 — its not like that the menu works without images and javascript, but without javascript the menu is expanded and with its collapsed.

So the problem is the menu is expanded while the images are loaded and get collapsed when they finnsh loading.
Copy linkTweet thisAlerts:
@FangSep 28.2007 — Pre-load the images and use this function to execute the menu functions earlier.
Copy linkTweet thisAlerts:
@alexejauthorSep 28.2007 — thanks you worked really good. Exactly what i was looking for.
×

Success!

Help @alexej 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.2,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...