如何来缩小aspx页面 [英] How to minify aspx pages
问题描述
我开发一个基于Web的口袋妖怪在线游戏。既然是在网上,我想优化它以最快的速度运行成为可能。
I am developing a web-based Pokemon Online game. Since it is online, I would like to optimize it to run as quickly possible.
我已经安装了萤火虫和Page Speed的建议与缩小我的HTML输出。我还使用VS2008,ASP.NET 3.5,AJAX和IIS 7.5;随着URL重写。
I've installed Firebug and Page Speed suggests minifying my HTML output. I'm also using VS2008, ASP.NET 3.5, AJAX, and IIS 7.5; along with URL-Rewriting.
我要来缩小我的HTML,JavaScript和CSS。理想情况下,我想要缩小文件过程在编译时发生。我花几个小时网上找也没有找到一个体面的解决方案,可以帮助我吗?谢谢你。
I want to minify my HTML, JavaScript, and CSS. Optimally, I'd like the minifying process to happen at compile time. I've spend hours looking online but couldn't find a decent solution, can you help me? Thank you.
推荐答案
首先,你应该阅读的 /rules.html\">Yahoo的最佳做法。
Firstly, you should read the Yahoo best practices for speeding up webpages.
您可能会发现污染减量的HTML不会有太大的差异(见这个问题),但是很多该文章将在其他建议。
You will probably find that minifying the HTML won't have much difference (also see this question), but a lot of the other suggestions in that article will.
这篇关于如何来缩小aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!