Friday, October 24, 2008

Tips for designing a good web site

All the web designer works on their way to develop the fast loading site. These are the common observation while we do web page design
1. Minimize the use of images.
2. Optimize images for the web
3. Use Tables creatively
4. Cut down the use of animated gifs
5. Design simple icons
6. Use background images instead of big images whenever possible
7. Try out CSS Styles
8. Use Flash sparingly
9. Design most of site contents in HTML.
Keep checking your load time - Check its load time on
NetMechanic. This site gives you a free analysis of your web site, which is extremely useful.


Asp.net Server Side coding tips

ASP.NET has been developed with lots of features, which makes developer life easy. Start from ViewState, PostBack, Server Controls , User Controls and etc. All of them can make your web development experience fun and easy, but improper use of them can cause your site performance slowdown.
1.Avoid unnecessary round trips to the server. Use IsPostBack property effectively.
2.Enabled ViewState only if needed.
3.Leave buffering on unless we have a specific reason to turn it off.
4.Use the Server.Transfer method from the Server object or cross-page posting to redirect between ASP.NET pages in the same application
5.Disable session state when you are not using it.( <
%@ Page EnableSessionState=false%> ) When required choose the correct session-state provider depends on the design.
6.Use SQL Server and stored procedures for data access. Use the SQLClient class and SqlDataReader class for a fast forward-only data cursor.
7.Cache data and page output whenever possible.
8.Avoid using view state encryption unless necessary.
9.Run Web applications out-of-process on Internet Information Services 5.0.
10.Recycle processes periodically.
11.Adjust the number of threads per worker process for your application if necessary.
12.For applications that rely extensively on external resources, consider enabling Web gardening on multiprocessor computers.
13.Disable debug mode, deploy only Release version. Use Pre-compiling deployment.
14.Avoid single-threaded apartment (STA) COM components.( include the ASPCompat=true attribute in the @ Page directive in the .aspx)
15.Handle exceptions wisely.

No comments:

Post a Comment