Can YUI compressor minimize ASP.NET inline script?

3 answers

You can take a peek at MBCompression. This allows you to compress almost everything that comes out of a .net application (including those beautiful webresource.axd).

This has a similar effect as regular javascript compression. Other than that, I will still look at pulling inline scripts into separate files to remove duplication and allow the browser to cache this data.

+2
source

Do not forget that there is . YUI compressor NET port . :)

You can use it for post-build events or in a TFS build, or just use the DLL in your own projects.

+5
source

This is just text. Remove it from the surrounding HTML file, run it through the YUI compressor, and return it.

If it is generated by ASP.NET components, then you will probably have to intercept it at the exit from ASP (for example, with a proxy), and at this point it is almost certainly not worth the effort.

0
source

All Articles