如何加快网页的呈现速度? [英] How can i speed up the rendering of webpages?

查看:84
本文介绍了如何加快网页的呈现速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,问候,

我想加快我在Web应用程序中创建的网页的呈现速度.它是一个ASP.NET(C#)Web应用程序(一种培训管理系统),并且花费太多时间来加载页面和UI呈现.

请向我建议解决方法,

Hi All, Greetings,

I want to speed up the rendering of webpages i have created in my web-application. It is an ASP.NET (C#) Web Application (kind of Training management system) and taking too much time to load pages & UI Rendering.

Please suggest me the workarounds,
Thanks in advance!

推荐答案

在CP之前已经在这里回答了类似的问题,请检查这些.

优化-Web和数据库 [ ^ ]
如何解决缓慢的网页交付? [ ^ ]
Web应用程序速度的因素 [在asp.net中优化网站 [缓慢打开网页 [
Already answered similar questions here before in CP, check these.

Optimization - Web & Database[^]
How do I fix slow web page delivery?[^]
Factors for web application speed[^]
Optimise a website in asp.net[^]
Opening the web page slow[^]


您好,

1.删​​除页面中所有不必要的代码.
2.如果您正在编写JavaScript,请尝试将它们放在.js文件中并进行访问.删除javascript中的所有空格.
3.如果在网页中仅显示详细信息而不进行任何保存/更新,请禁用viewstate.
4.不要引发不必要的事件.
5.如果要检索大量数据并将其显示在数据网格或gridview中,请启用分页
6.优化数据库查询,如果要处理大量数据,请编写一些视图以获取数据
7.如果您不要求保留表单值,请禁用视图状态
8.不要在会话中放置大量数据

这些是更广泛意义上的一些基本知识.
chsharpcorner.com,msdn.com和codeproject.com中有一些有关Web应用程序性能的好文章


希望对您有所帮助.
Hi,

1. Remove all the unnecessary coding in your page.
2. If you are writing JavaScript try to place them in .js file and access them. Remove all the white spaces in javascript.
3. If in your web page if you are showing only details and not doing any save/update part then disable viewstate.
4. Don''t raise unnecessary events.
5. If you are retrieving large amount of data and showing them in data grid or gridview then enable paging
6. Optimize your database queries and if you are dealing with large amount of data then write some views to get data
7. If you don''t require form values to be retained then disable view state
8. Don''t place large amount of data in session

These are some basic things at a broader level.
There are some good articles about web app performance in chsharpcorner.com, msdn.com and codeproject.com


Hope this helps.


通过优化编码.
请删除不必要的使用"代码后面的命名空间.
by optimization coding.
please remove unnecessery "using" i,e namespaces in your code behind.


这篇关于如何加快网页的呈现速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆