如何减少aspx页面大小 [英] How to reduce the aspx page size

查看:78
本文介绍了如何减少aspx页面大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI frnds,
我有一个大小为300kb的home.aspx页面,其中包含ASP设计编码和javascript编码.
我想缩小页面的大小...

请给我一个主意...

HI frnds,
I have home.aspx page in size of 300kb which contains asp design codings and javascript codings..

I want to reduce the size of the page...

Please give me the idea...

推荐答案



有一些减小页面大小的一般准则是:
1)您可以使用Java脚本文件的最小/压缩版本( http://jscompress.com/ [


there are some general guidelines to reduce the page size are:
1)you can use min/compress version of java script file (http://jscompress.com/[this will help you to compress JS files]
2)remove the java script files from your master file which require for the all pages
3)if you are using sever side control and if you don''t require the controls value after post back set view state property of control to false

those are few input that may help you to reduce page size


我想减小页面的大小...
试试:
1.将所有样式放在单独的样式表中,然后参考CSS
2.将所有JavaScript代码放在单独的文件中,然后在页面中引用
3.删除页面中不必要的注释
I want to reduce the size of the page...
Try:
1. Put all your styles in a separate style sheet and then refer the CSS
2. Put all your JavaScript code in a separate file and then refer that in your page
3. Remove unnecessary comments if any in your page


这篇关于如何减少aspx页面大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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