Asp.net UI Performance tuning
1.using gizp compress page ,gif file can't be compressed.
2.put script at the bottom,and put css at the top.
3.make the css and js external.
4.load-on-demand.(If a UI block need to show by control.Set visibable=false. and enableviewstate=true,override the saveviewstate method.)
5.remove the duplicate js file.
6.set expire header to static files.
7.make fewer http requests
8.minimize the control id.
Ïà¹ØÎĵµ£º
ÔÚAsp.netÒµÎñϵͳµÄ¿ª·¢¹ý³ÌÖУ¬ÎªÁ˱£Ö¤Ò³Ãæ·ç¸ñµÄÒ»ÖÂÐÔÒÔ¼°¼õÉÙÖظ´´úÂëµÄ±àд£¬ÎÒÃÇÐèÒªÒýÈë»ùÀàÒ³µÄ¸ÅÄ¼´£º¶¨ÒåÒ»¸ö»ùÀàÒ³£¬ÈÃËùÓеÄÒ³Ã涼¼Ì³ÐÕâ¸ö»ùÀ࣬²¢ÔڸûùÀàÒ³ÖмÓÈ빫ÓõÄÊôÐԺͷ½·¨¡£
ʵ¼ÊʹÓÃʱ£¬°´ÕÕ¹¦ÄÜÒ³Ãæ»®·Ö£¬¿ÉÒÔ¶¨Òå¶à¸ö»ùÀàÒ³£¬È磺
class FormBase
class BizFormBase £ºFormBase
class ......
ASP.NET µÇ¼¿Ø¼þʹÄúÄܹ»ÌṩһÖÖ½â¾ö·½°¸£¬¸ù¾ÝÓû§Éí·ÝÑéÖ¤¡¢³ÉÔ±×ʸñºÍ½ÇÉ«À´¿ØÖƶÔÍøÒ³µÄ·ÃÎÊ¡£µÇ¼¿Ø¼þ°üÀ¨£ºCreateUserWizard ¿Ø¼þ¡¢Login ¿Ø¼þ¡¢LoginStatus ¿Ø¼þ¡¢LoginView ¿Ø¼þ¡¢PasswordRecovery ¿Ø¼þºÍ ChangePassword ¿Ø¼þ¡£
ËäÈ»ÏÂÃæµÄ±àÂëºÍÅäÖÃ×î¼Ñʵ¼ù¿ÉÒÔÌá¸ßÓ¦ÓóÌÐ ......
Web ²¿¼þÊÇ ASP.NET µÄÒ»Ïîй¦ÄÜ£¬Ëü¸³Óè×îÖÕÓû§Ð޸Ļò¸öÐÔ»¯ÍøÒ³µÄÄÜÁ¦¡£¶ÔÓÚ Web Ó¦ÓóÌÐòµÄÓû§À´Ëµ£¬¸öÐÔ»¯ÍøÒ³¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬µ«Ò²´øÀ´¿ª·¢ÈËÔ±Ó¦¸ÃÁ˽âµÄ°²È«Òþ»¼¡£
ÓÉÓÚ Web ²¿¼þÊÇÒ»ÖÖ ASP.NET ¹¦ÄÜ£¬¶ø Web ²¿¼þ¿Ø¼þÊÇÀ©Õ¹µÄ ASP.NET ·þÎñÆ÷¿Ø¼þ£¬Òò´Ë£¬Web ²¿¼þÒ³ÈÝÒ×ÔâÊÜË ......
Login ¿Ø¼þÊÇÒ»ÖÖ¸´ºÏ¿Ø¼þ£¬ÌṩÁ˵Ǽ´°ÌåµÄËùÓг£ÓÃÓû§½çÃæ (UI) ÔªËØ¡£¸Ã¿Ø¼þ±»Ä£¿é»¯£¬¿É·Ö±ð×Ô¶¨Òåÿ¸ö²¿¼þ¡£ÕâЩ²¿¼þ°üÀ¨“Óû§Ãû”ºÍ“ÃÜÂë”Îı¾¿ò¡¢“Ìá½»”°´Å¥¡¢ÓÃÓÚ´´½¨ÐÂÓû§µÄ°´Å¥¡¢“¼ÇסÎÒ”¸´Ñ¡¿òºÍÓû§µÄ°ïÖúÐÅÏ¢¡£Äú¿ ......