Geeks With Blogs
Geeks with Blogs, the #1 blog community for IT Pros
Start Your Blog
| 938 Comments
My Other Recent Posts
Response for REST method was truncated because default MaxItemsInObjectGraph was not big enough.
Upgrading PostSharp from ver 2.1 to new version 3.0
AddIfNotNull collection extensions
Override ToString() using Json serialization or something else.
Deploy PDB files into production to ease exception report investigation.
Default Enum initialisation by MS Create Unit Tests wizard.
WCF Transactions are not supported by Azure.
2010 version of TF (TFS command tool) unable to determine the workspace that is working with Vs 2012 and TFS 2012
EntLIb editor corrupts config files
Static methods not always bad for testability
August 2013 (6)
July 2013 (1)
June 2013 (5)
May 2013 (3)
March 2013 (3)
February 2013 (5)
December 2012 (4)
November 2012 (1)
October 2012 (4)
September 2012 (4)
August 2012 (3)
July 2012 (3)
June 2012 (4)
May 2012 (3)
April 2012 (11)
March 2012 (4)
January 2012 (3)
December 2011 (2)
November 2011 (1)
October 2011 (1)
September 2011 (8)
August 2011 (1)
July 2011 (4)
June 2011 (16)
May 2011 (11)
July 2010 (4)
June 2010 (8)
May 2010 (3)
March 2010 (1)
December 2009 (1)
November 2009 (3)
September 2009 (3)
August 2009 (1)
July 2009 (5)
June 2009 (5)
May 2009 (7)
April 2009 (2)
March 2009 (5)
February 2009 (5)
January 2009 (10)
December 2008 (8)
November 2008 (7)
October 2008 (5)
September 2008 (3)
August 2008 (4)
July 2008 (15)
June 2008 (4)
May 2008 (12)
April 2008 (6)
March 2008 (6)
February 2008 (14)
January 2008 (11)
December 2007 (2)
November 2007 (3)
October 2007 (18)
September 2007 (7)
August 2007 (2)
July 2007 (6)
June 2007 (9)
May 2007 (10)
April 2007 (2)
March 2007 (19)
February 2007 (5)
January 2007 (3)
December 2006 (6)
November 2006 (6)
October 2006 (7)
September 2006 (10)
August 2006 (17)
July 2006 (9)
June 2006 (6)
May 2006 (9)
April 2006 (7)
March 2006 (21)
February 2006 (22)
January 2006 (11)
December 2005 (5)
November 2005 (5)
October 2005 (8)
September 2005 (5)
August 2005 (4)
July 2005 (2)
Michael Freidgeim's Blog
MS .Net Development
<< ReplaceBetweenTags function with delegate to describe transformation
Case-insensitive Contains extension for list of strings >>
There are multiple ways and techniques how to combine and minify JS and CSS files.
The good number of links can be found in
There are 2 major approaches- do it during build or at run-time.
In our application there are multiple user-controls, each of them required different JS or CSS files, and they loaded dynamically in the different combinations. We decided that loading all JS or CSS files for each page is not a good idea, but for each page we need to load different set of files.
Based on this combining files on the build stage does not looks feasible.
After Reviewing different links I’ve decided that
should fit to our needs.
Different limitations of using SquishIt.
We had some browser specific CSS files, that loaded conditionally depending of browser type(i.e IE and all other browsers). We had to put them in separate bundles,
For Resources and AXD files we decide to use
HttpModule and HttpHandler created by
To GZIP html we are using wwWebUtils.GZipEncodePage()
Just swap the order of which encoding you apply to start by asking for deflate support and then GZip afterwards.
Additional tips about SquishIt.
Support intellisense and generate bundle in codebehind
Links about other Libraries that were considered
A few links from
.Net 4.5 will have out-of-the-box tools for JS/CSS combining.
. It suggests default bundle of subfolder, but also seems supporting similar to
explicitly specified files.
config XML file can specify expiry etc
Dynamically loaded JS files requireJS
(by Douglas Crockford)
(from Dojo library)
(by Dean Edwards)
& RadStyleSheetManager -fromTeleric(not free)
Tools to optimize performance:
PageSpeed tools family
Posted on Sunday, April 15, 2012 8:08 PM
Back to top
Related Posts on Geeks With Blogs
Problems with authenticating to a webservice using...
Treat technology like your 401k!
A Perfect & Ground-breaking Technological Revoluti...
Building C#/ASP.NET Apps on a Mac With vNext
No comments posted yet.
Email: (never displayed)
(will show your
Allowed tags: blockquote, a, strong, em, p, u, strike, super, sub, code
Copyright © Michael Freidgeim | Powered by:
Popular Posts on Geeks with Blogs
Differences between Windows 10 Home, Pro, Enterprise and Education Editions
How to compile less in Visual studio 2015 ?
Who do you want to KISS? - About simplicity in coding
Little Puzzlers–List all anagrams for a word
Changing the VS2015 Icon in Windows 8/8.1
Geeks With Blogs Content Categories
Team Foundation Server
Brand New Posts on Geeks with Blogs
x86 bootloader for WCE8
PowerShell & ActiveDirectory - BYOTD - Build your own test domain
Windows 10 SDK With New Windows Performance Toolkit Available!
Visual Studio 2015 Community Edition + Succinctly E-Book
Getting Started with ProcMon for Troubleshooting Long Running Processes