I'm using VS2010,C# to develop my ASP.NET web app, I display several big images (around 50KB in size) in a page, and it takes time, of course initially just some small versions of these images are displayed, then user can click on each image and the real size image would be displayed in a lightbox. But as I load the full size images for displaying the thumbnails, it takes a lot of time for loading the page, is there any way that I can load only a small size of each image? is there any way that I can reduce my load time and display thumbnails of images? what are my options, help me please
相关问题
- Views base64 encoded blob in HTML with PHP
- How to get the background from multiple images by
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
you can do two things one create thumbnail and load them rather loading your main images and also you can imply lazy loading means you only load images those are immediately required in viewport that will certainly help your cause.
Link for lazy loading
best to use Thumbviewer. It is so easy to use and you'll be surprise how efficient it works.
you can find demo here : Thumbnail-Image-Viewer-Control-for-ASP.Net
No, there is no way. If you create a thumbnail on the fly, the whole image has to be loaded, which defeats the purpose.
You could create the thumbnails ahead of time.