Jump to content
Killersites Forums

possible Flash Of Unstyled Content


ll87
 Share

Recommended Posts

I have implemented an image fader using jQuery but on first load, you briefly see the 4 images load on top of each other.

 

i have tried to hide the images with regular javascript rather than wait until document ready but i can't track down how to solve this. can i actually get rid of this?

 

if u need the url to see, i completely understand and i can send it to u but not on a forum post.

 

i know i might have been vague but i think it's almost certainly a common problem :P

 

Thanks!

Link to comment
Share on other sites

Hide them using CSS: display:none

 

Then show the first one when ur ready to show it using javascript

 

That is probably the best idea.

 

It seems that your images are being loaded before the Javascript is processed .... remember that the web still loads and processes from the top of the page down. So a sequence/placement change might solve your problem.

 

Again though, I would do as suggested above; just load the images into a hidden div and then just reset the div's display property as the first action in the script.

 

Stefan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...