SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru quenting's Avatar
    Join Date
    Dec 2002
    Location
    Switzerland
    Posts
    735
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css images, when do they load

    a simple question to know when do images included in css files (as for example in background-url) load.
    Is it when they're called in the css file (which would mean before the html itself) ? after the css itself has fully loaded ? after the whole page has loaded ? Or once an element using this image is displayed ?

    That has some importance as for example for CSS rollovers, the hover image is displayed on mouseover, but is it loaded before that happens or not ?

    And are these images cached as any other one in the page or is there any difference ?

    Thanks
    Quentin

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: css images, when do they load

    Originally posted by quenting
    a
    And are these images cached as any other one in the page or is there any difference ?
    Yes, the images will be cached like any other. If you are using it on multiple pages, every page after the first will load the image super-fast.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •