如何在ASP.NET应用程序中压缩js和Css文件 [英] How to Compress js and Css files in ASP.NET Application
本文介绍了如何在ASP.NET应用程序中压缩js和Css文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨伙计,
我要求通过减少加载时间来提高页面性能
因为页面有多个用户控制它加载整页需要近8秒
页面包含没有存储过程
和用户控件
和客户js文件
和jqxgrid js和css文件
我怎样才能减少加载时间来优化我的页面性能
和建议
谢谢,
Syed
Hi Folks,
I have Requirement to Improve the Page Performance by Reducing the Loading Time
as the Page Has Multiple Usercontrols it Takes almost 8 seconds to load entire page
Page includes with no of stored procedures
and User controls
and customer js files
and jqxgrid js and css files
How could i reduce the Loading time to Optimize my Page Performance
and Suggestions
Thanks,
Syed
推荐答案
你确定它的css和js会导致问题吗? 8秒听起来很极端。我对存储过程持怀疑态度。首先单独对它们进行基准测试。
对于缩小CSS,你可以查看:( YUI Compressor )或( CSSMin )。
YUI Compressor也缩小了JS,同样( JSMin )。
Are you sure its the css and js causing the problem? 8 seconds sounds extreme for that. I'd be suspicious of the stored procedures. Start by benchmarking them separately.
For minifying CSS you can check: (YUI Compressor) or (CSSMin).
YUI Compressor also minifies JS, as does (JSMin).
这篇关于如何在ASP.NET应用程序中压缩js和Css文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文