Google’s Page Speed and invalid HTML

by Mads4/13/2010
I’ve used Google’s Page Speed plug-in for Firebug a lot since it was released last year. Even though it’s not as good as Yahoo’s YSlow plug-in, it’s still very usable for some scenarios YSlow doesn’t support – my favorite being the analysis of unused CSS and selector optimizations. It also has a feature that will tell you how much your web page will gain by minifying the HTML. Not only does it analyze the difference but it can also generate an optimiz... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Windows Phone 7 user agent

by Mads3/15/2010
At the Mix10 conference, the Windows Phone 7 teams had some very big announcements – a lot of it had been kept secret and first revealed to the public now. There is however still some details they keep secret. Some of these secrets are the user agents of Internet Explorer for Windows Phone 7, which they simply wouldn’t give us. After playing with Windows Phone 7 we managed to secure a copy of the user agent string. The user agent for IE on Windows Phone 7 running on the Asus Galaxy d... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Efficient stylesheet minification in C#

by Mads2/28/2010
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.Replace(body, @"[a-zA-Z]+#", "#");  body = Regex.Replace(body, @"[\n\r]+\s*", string.Empty);  body = Regex.Replace(body, @"\s+", " ");  body = Regex.Replace(body, @"\s?([:,;{}])\... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Embed images in stylesheets

by Mads12/22/2009
A video showing you how easy it is to embed images directly into stylesheets to reduce the number of HTTP requests [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Off topic: The grand plan of 2009 conclusion

by Mads11/29/2009
The conclusion of my grand plan of 2009 saying I have to visit 12 different countries by the end of the year. [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Use Google's Closure Compiler in C#

by Mads11/8/2009
A very simple and small class for utilizing the Google Closure Compiler API for minifying JavaScript. [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Use iframes with XHTML 1.0 Strict

by Mads11/4/2009
Use a custom DTD that adds iframe support to XHTML 1.0 Strict [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Verify JavaScript syntax using C#

by Mads10/28/2009
How to use the Microsoft JScript compiler that's build into the .NET Framework [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Meta-tag bypasses IE8 checks

by Mads9/28/2009
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 or stylesheets. You can do that in two different ways: Using a meta-tag:<meta http-equiv="X-UA-Compatible" content="IE=7" />or this HTTP header:X-UA-Compatible: IE=7 This puts IE8 into IE7 r... [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |

Scale in the browser

by Mads9/21/2009
How to use JavaScript and the browser as a tool to scale websites [More]* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

| To the top |