----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: aamirOnline Message 2 in Discussion Hi Praveen As a normal flow browser always demands text first and images later (see point no.1). If you are creating dynamic images for you product catalog, you need to consider following aspects for improving performance. Image URL: Image URL plays very important role in improving performance. You need to know that while loading a page, browser first loads the html page, it parses and locates all the elements with src attribute. like <script>, <img> etc... Once it is located it then loads them one by one. But before loading, it verifies whether particular resource is available in the internet cache. If its available it sends server a request with LAST-MODIFIED command, asking for latest file. If no latest file is available, server merely returns a response status of 304 (NOT-MODIFIED). Which prompts browser to load Image from cache. So if you image doesn't not have a unique address, client side caching will not work. So if you have unique locator you have following benefits Page becomes heavy to load Client side catching doesn't work To avoid that create an HttpHandler which will help you give unique resource locator to your image. For Example <img src="http://localhost/myweb/catalogImages/CatalogHandler.image?id=10001" >. Here we are providing unique identifier to image src. You need to create an HttpHandler for handling *.image type and which accepts product id. Time consumed for creating an image: Server side image caching helps very much in reducing image creation time. You are using images for creating product catalog, so you should create the images at the time when product is created. Apart from that better algorithm should be written for reducing image creation time. Image quality: The better quality, the higher image size. Image size can be reduced by utilizing less number of colors. Hope this helps you out. Aamir http://aamirOnline.blogspot.com ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
