SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Senior Webdesigner koolbrian's Avatar
    Join Date
    Dec 2000
    Location
    Mauritius
    Posts
    599
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i would like to know what code ,html, i should add to my picture so another picture will appear while loading the images from the browser ?, is that possible ?


    Brian,
    did i made myself clear enought ?

  2. #2
    SitePoint Zealot cokeman's Avatar
    Join Date
    Dec 2000
    Location
    So. California
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you talking about the lowsrc attribute for the img tag?

    <img src="somepic.gif" lowsrc="smallpic.gif">

    This loads the lowsrc image first and then fills in the actual picture as it downloads it..

  3. #3
    One website at a time mmj's Avatar
    Join Date
    Feb 2001
    Location
    Melbourne Australia
    Posts
    6,282
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This isn't very common though because it does slow down the page a little bit.

    It would be beneficial in situations where you have a lot of different images that take ages to load, and you want to have the same lowsrc image for all of them, thus the lowsrc can provide a nice little customised "placeholder"

    I don't know how well supported this feature is, and I quite like the placeholders on today's browsers.
    [mmj] My magic jigsaw
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Bit Depth Blog Twitter Contact me
    Neon Javascript Framework Jokes Android stuff

  4. #4
    I'm baaaaaaaaaaaaack! Fluffykins's Avatar
    Join Date
    Aug 2000
    Location
    Manchester, UK
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Instead of using lowsrc, and if you're using GIF images you could try Interlacing them. Exactly how you interlace them will depend on the export features of the graphics software you're using to create them, but interlaced images *appear* to load faster by "fizzling" in instead of loading top to bottom.

    Interlacing only works with GIF images.

    Ady
    v-technologies - Freelance Goodness.

  5. #5
    pg for mild peril cow's Avatar
    Join Date
    Mar 2000
    Location
    nevada, usa
    Posts
    636
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can also "interlace" jpg images with programs that allow you to save a jpg image with the "progressive" option.

    i use photoshop 5.5 and imageready 2. they both feature this option. if i remember correctly, photoshop 5.0 and imageready 1 also had this option.


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
  •