Pages loading images

Discussion in 'ASP.NET / ASP.NET Core' started by JerSchneid, Jan 15, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I don't think the resource idea will work. Keep in mind that those visiting your site will be on a completely different computer, so those images will have to go across the network one way or another. In addition i have never heard of any browsers having support for downloading images in a batch, then displaying them separately.

    Looking at the HTML source will be very helpful.
     
  2. Hi All,
    I have a query about my new asp site. Every page seems to want to load 50 images even though they aren't using it. It seems to be affecting performance. I have all images in a directory.
    Anyone have any ideas?
    Cheers
    Delforce
     
  3. What makes you think each page is loading 50 images? Are the images referenced in the generated HTML source (you can view the generated source using the View/Source... command in your web browser)
     
  4. Hi JerSchneid,
    Thanks for your reply. What I noticed was that sometimes when loading a page it says that their is still 50 items to dowload. The strange thing is that I only have about 5 images on the page. My CSS file contains references to multipled images for backgrounds on pages etc.. I think that the CSS is being loaded in the background but I'm not sure.
    An idea I had was to put all images into the assembly embedded. Then load all images into a class with an image list and then the performance may be improved. The only issue is I don't know how to reference an embedded resource from inside the CSS file. For Example;

    div#content h3
    {
    background-position: left center;
    border-left-color: #0033cc;
    background-image: url(.\images\right_heading.jpg);
    border-bottom-color: #0033ff;
    width: 100%;
    color: white;
    border-top-color: #0033ff;
    text-indent: 10px;
    background-repeat: no-repeat;
    height: 20px;
    background-color: #000099;
    border-right-color: #0033ff;
    }</BLOCKQUOTE>
    This references the right_heading.jpg from the file, now if I didn't want this to load every time I open a page along with other images I could grab it from an embedded resource maybe.

    This is a hunch, tell me if I'm way off.
    The site doesn't take that long to load I just wondered why it has to sometimes load 50 items when I only have text and a couple of headings.
    I shall check the source code when I'm on tonight and post the reply to your question.
    Cheers
    Delforce.
     
  5. Hi JerSchneid,


    Thanks for your input m8. Looking at the source reveals to me an awful lot of javascript. I think this is due to the menu system I'm using called skmMenu. It creates the javascript in the source so I think my site is loading all the tables etc.. and we all know that tables affect bandwidth. Oh well I might have to live with that little problem until I come up with a more suitable menu system.


    Thanks for your help JerSchneid, I was just concerned that my pages weren't loading instantly because I don't have alot of content in the home page. Thanks to you I now know why. Also NOTE taken about the resource stuff, I thought it was the images however after looking at the source I don't think so.


    PS:Anyone know a really good 3rd party menu system or do I need to make my own?


    Cheers


    Del
     
  6. Try the ComponentOne WebMenus and WebBars? for ASP.NET . We have a deal with them and you get to use this componet for free. Go the Marketplace section of the control panel for more details.

    DiscountASP.NET
    www.DiscountASP.NET
     
  7. Thanks for that.[​IMG]I can only see version 2005, I have version 2002 running, is that version included?
    Cheers
    Del

    Post Edited (Delforce) : 1/20/2006 3:12:31 AM GMT
     
  8. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

  9. Yep, tried it out looks good.


    Thanks for your help.


    Cheers


    Del
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page