3

Can someone give me pointers on how I can minify and combine my CSS as the site I'm working on has performance issues. Also, are external JS and CSS libraries also minified and combined or left as is?

3
  • Also, do I need separate tools to perform the minification and combination or would one tool do? Commented Feb 29, 2012 at 11:02
  • Does anyone know if external libraries are usually minified? Commented Feb 29, 2012 at 11:18
  • You can normally tell if external libs are minified by their name, as they have "min" in it, e.g. with jQuery. Commented Feb 29, 2012 at 11:56

4 Answers 4

5

There are several convenient options for .NET, for example:

Chirpy

SquishIt

Cassette

And new in ASP.NET 4.5: Bundling in ASP.NET 4.5

Sign up to request clarification or add additional context in comments.

2 Comments

Isn't Minify a php app? Anyway, if it does what you need - why not?
I don't know how Minify works - but with all the available .NET options available there isn't much reason to find out IMO. Just try one of the tools I mentioned.
3

I'd recommend reading Google's Page Speed and their Closure Compiler Service.

Comments

2

I would also add RequestReduce for .net options. It may be the only runtime bundling option for minifying external resources. Its unique from the other .net options in that it grabs the unminified content via http instead of via the file system. It can also sprite your background images.

Comments

0

I know this is an old question but I thought I will give a better answer (trick).

In visual studio if you do format code (Ctrl + K + D) then css will be formatted nicely for you.

1 Comment

No offense but It has nothing to do with the question, he's asking about a popular subject named code minification and you are telling him about the visual studio auto format feature to make the code nice and tidy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.