Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 32

Thread: Why do the images on my web site load so slowly?

  1. #11
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I knew there was something wrong with that...Say I have the following HTML, how can I fix the errors in the code? Thx

    </STYLE>
    <DIV id=Apron-Button>
    <A href="\index_files\aprons.htm" target="FRAME1"><center>aprons</center></A>
    </DIV>

  2. #12
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    It should be:
    Code:
    </style>
    <div id="Apron-Button">
    <a href="/index_files/aprons.htm" target="FRAME1"><p style="text-align:center;">aprons</p></a>
    </div>
    Although a better idea would be to apply text-align:center; to #Apron-Button.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #13
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hmmm...Problem is the pictures still load slowly now that I fixed the backslash issue...+ when I load the housekeeping section, 1st picture on the top always has a line on it...weird...

    Thx for all your help...If I may just ask one last tip before I do my "homework", what seems to be the issue with the pictures loading slowly, any way I can have them load progressively or something, so that we don't get the missing link icon before the pictures load?

    Thx again!
    Last edited by Lattman; 04-27-2006 at 05:46 PM.

  4. #14
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    They don't load slowly at all for me; perfectly normal.
    any way I can have them load progressively or something
    What you're talking about is called "interlacing," and it's possible with GIF and PNG images, but not, to the best of my knowledge, with JPEG.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #15
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default

    Load fine here

  6. #16
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    Firefox appears to have stepped down slightly on this position; when I first used it, it wouldn't even load a page with a backslash in the URL. Now, it seems, it tries it as a directory seperator.
    Not so. It just silently percent-encodes the backslashes. That's why it doesn't resolve relative URIs in the way OP hoped. IE, on the other hand, converts backslashes to forward slashes before sending the request.

    <a href="/index_files/aprons.htm" target="FRAME1"><p style="text-align:center;">aprons</p></a>
    A paragraph within a link?!


    To the OP: I really isn't a good idea to use MS Office products to produce HTML. They generate the most vulgar markup.

    Mike

  7. #17
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by Mike
    A paragraph within a link?!
    Ouch, yes, good point.
    Code:
    </style>
    <div id="Apron-Button">
    <p style="text-align:center;"><a href="/index_files/aprons.htm" target="FRAME1">aprons</a></p>
    </div>
    Not so. It just silently percent-encodes the backslashes.
    Ah -- IIS then handles them?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #18
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    Quote Originally Posted by Mike
    Not so. It just silently percent-encodes the backslashes.
    Ah -- IIS then handles them?
    Presumably. I edited a comment along those lines out of post as I couldn't remember exactly what form the original link URIs took. If they were,

    &#160;&#160;\index_files\aprons.htm

    and the like, then yes, IIS does either map them to forward slashes, or to the filesystem directly, rather than doing the proper thing and returning a 404 status code.

    Mike

  9. #19
    Join Date
    Mar 2006
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    At this point, I believe I've eliminated much of the bugs, the only thing I don't like is the fact that I get the broken link icon a slit second before a picture loads...Is there a possibility I can get ride of this?

    Thx!

  10. #20
    Join Date
    Apr 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did you use framesets in designing your site? I have check all the links in your links menu, and the address never changes in the address bar. And yes your are slow in loading. The page bacome choppy also when I scroll it. Try to load your web site using a dial up connection to test for performance. Avoid large graphics because this causes slow loading of the site. Minimize HTML file size and complexity to maximize page display speed.
    Master CSS conversion and shorthand. Shrink and speed up your JavaScript.

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
  •