Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Junior Member Darkmakaimura's Avatar
    Join Date
    Mar 2004
    Posts
    23
    Member #
    5347
    Is there any simple method to get a background to load before other images do?

    Thank you.

  2.  

  3. #2
    Member Victor's Avatar
    Join Date
    Jul 2004
    Posts
    54
    Member #
    6614
    Put background image definition at the the top of CSS file.

  4. #3
    Senior Member jlgosse's Avatar
    Join Date
    Jan 2004
    Location
    Newfoundland, Canada
    Posts
    1,037
    Member #
    4570
    Liked
    7 times
    That didn't make sense to me.

    Did you mean just put:
    Code:
    body {
      background-image: url('path/to/file.jpg');
    }
    Clear that up, I'm curious as to what you mean.


  5. #4
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    I think he did, but I think he meant putting it at the top of the file would reference it first. THis would only work I think depending on file size.
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  6. #5
    Senior Member jlgosse's Avatar
    Join Date
    Jan 2004
    Location
    Newfoundland, Canada
    Posts
    1,037
    Member #
    4570
    Liked
    7 times
    It wouldn't check for that if it was to work like he said.

    I would say it starts the download first (before everything else, since it is referenced first), then once the download for the image is complete it would render it on-screen.

    Other than that you would probably have to use JS or something.


  7. #6
    Junior Member Darkmakaimura's Avatar
    Join Date
    Mar 2004
    Posts
    23
    Member #
    5347
    I'm not using CSS btw

  8. #7
    Member Victor's Avatar
    Join Date
    Jul 2004
    Posts
    54
    Member #
    6614
    Thats bad Darkmakaimura. You should use it.

    Yes jlgosse, I meant that. But I guess background image should be 200b or even smaller, so it will downloads fast. If the background image is too big, you can make background color similar to your image. It will help to keep the look of the site. Also all browsers have a different rendering scheme.

    If you realy need to show background first, then you can use hidden layer with all content and show it after background will be loaded. But this is the most bad thing you can do Surfers like to read the text on your site, they are more interested in the good content, than in the background.

  9. #8
    Senior Member jlgosse's Avatar
    Join Date
    Jan 2004
    Location
    Newfoundland, Canada
    Posts
    1,037
    Member #
    4570
    Liked
    7 times
    A background under 200b would be atrocious (spl?), you don't need it THAT small.



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:09 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com