Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
My webiste contains lot of images getting more time to load the page.so can you suggest me any way load faster .
Posted
Comments
Mehdi Gholam 8-Jun-15 3:34am    
Reduce the number and the size of the images.
venkatesh@India 8-Jun-15 5:51am    
Can you tell me the best size reducing software
xszaboj 8-Jun-15 6:34am    
I use for example. IrfanView. It has ability to resize more images(batch) in one step. And you can define a lot of different options how the image should be resized.

The question makes little sense. As you are not writing the code which loads the images, you have nothing to optimize. The images are downloaded by the client side, a browser, not your ASP.NET code. You did not mention creation of images in the fly, so I can assume those are static images. If the images are shown on your Web page, you don't even read them and send in your HTTP response. Instead, HTTP response contains only the file names. When the page is rendered on the client side, the browser sends additional HTTP request to get the images. At this moment, your ASP.NET page work cycle is already over. The images will be read from a file and send to the client side by the HTTP browser itself. Again, none of your ASP.NET code participates in this process.

There is nothing to optimize.

—SA
 
Share this answer
 
Hello if your page has lot of images and you keep them on your server, you can try to put them into one big picture. This technique is called image sprite.

here is a link how to use it:

http://www.tutorialrepublic.com/css-tutorial/css-sprites.php

If you download images from different servers(from internet) it might be a good idea to download them all on your server.

Maybe try to show us your web page so we could see what is going on your page?

Hope it is helpful
 
Share this answer
 
Comments
venkatesh@India 8-Jun-15 5:50am    
i will be using dynamic images from the database.
xszaboj 8-Jun-15 6:13am    
Ok, but i guess that in your db you have just urls to your images? or do you save blobs?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900