Efficient stylesheet minification in C#

by Mads Kristensen 28. February 2010 14:00
A few weeks back i found out that the method I use to minify CSS was about 5% more efficient than the YUI Compressor. I tweeted about it and was encouraged to post the code that does the actual minification. public static string RemoveWhiteSpaceFromStylesheets(string body) {   body = Regex... [More]

Tags: , ,

ASP.NET

Embed images in stylesheets

by Mads Kristensen 22. December 2009 16:24
A video showing you how easy it is to embed images directly into stylesheets to reduce the number of HTTP requests [More]

Tags: , , ,

Client-side | Videos

Off topic: The grand plan of 2009 conclusion

by Mads Kristensen 29. November 2009 05:03
The conclusion of my grand plan of 2009 saying I have to visit 12 different countries by the end of the year. [More]

Tags:

General

Use Google's Closure Compiler in C#

by Mads Kristensen 8. November 2009 09:26
A very simple and small class for utilizing the Google Closure Compiler API for minifying JavaScript. [More]

Tags: , ,

ASP.NET | Client-side

Use iframes with XHTML 1.0 Strict

by Mads Kristensen 4. November 2009 06:26
Use a custom DTD that adds iframe support to XHTML 1.0 Strict [More]

Tags: , ,

Client-side

Verify JavaScript syntax using C#

by Mads Kristensen 28. October 2009 17:10
How to use the Microsoft JScript compiler that's build into the .NET Framework [More]

Tags: ,

Client-side

Meta-tag bypasses IE8 checks

by Mads Kristensen 28. September 2009 13:22
Internet Explorer 8 introduced a new mechanism for ensuring backwards compatibility with websites built for IE7, so "the web" didn't break with IE8's more standards compliant rendering. You could tell IE8 to render your website as IE7 and therefore avoid having to fix potential problems with markup ... [More]

Tags: , ,

Client-side

Scale in the browser

by Mads Kristensen 21. September 2009 14:17
How to use JavaScript and the browser as a tool to scale websites [More]

Tags: , ,

ASP.NET | Client-side

Iframe cross domain JavaScript calls

by Mads Kristensen 25. August 2009 15:26
How to implement 'Same Origin Policy' that will allow for cross domain JavaScript calls [More]

Tags: ,

Client-side

Off topic: The grand plan for 2009 follow up

by Mads Kristensen 27. July 2009 17:29
A follow-up to my grand plan for 2009 which looks to succeed [More]

Tags: ,

Random thoughts

About the slave

Mads Kristensen Mads Kristensen
Web developer at ZYB and founder of BlogEngine.NET. More...

LinkedIn ZYB Facebook Last.fm Twitter View Mads Kristensen's profile on Technorati

The Lounge

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008