Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 31, 2013 11:40 AM by KulerMaster
Member
206 Points
326 Posts
Jan 08, 2013 07:28 PM|LINK
I have more than 20 css files in the Theme and it takes for a while to load all the files :(
Is there a way to load all 20 stylesheets at once?
Thank you
All-Star
86645 Points
9629 Posts
Moderator
MVP
Jan 08, 2013 08:05 PM|LINK
You can use the new ASP.NET 4.5 Bundling and Minification features. To see how to add them to Web Forms, check this blog post: http://blogs.msdn.com/b/rickandy/archive/2012/08/14/adding-bundling-and-minification-to-web-forms.aspx
Jan 08, 2013 09:52 PM|LINK
Unfortunatelly we use FW 3.5
Do you think if i read all 20 files using StreamReader and then put in the header, will help?
23373 Points
2490 Posts
Microsoft
Jan 15, 2013 09:13 AM|LINK
Hi,
In order to resolve your issue, please check CssMin which is a css parser and minfier. It minifies css by removing unneeded whitespace character, comments, empty blocks and empty declarations.
For details, please check the link below:
http://code.google.com/p/cssmin/
Best wishes,
Jan 31, 2013 11:40 AM|LINK
I ended up merging all stylesheets into one and it worked just fine for me. Thanks for reading ...
KulerMaster
Member
206 Points
326 Posts
Loading Multiple CSS files in a single HTTP Request
Jan 08, 2013 07:28 PM|LINK
I have more than 20 css files in the Theme and it takes for a while to load all the files :(
Is there a way to load all 20 stylesheets at once?
Thank you
DarrellNorto...
All-Star
86645 Points
9629 Posts
Moderator
MVP
Re: Loading Multiple CSS files in a single HTTP Request
Jan 08, 2013 08:05 PM|LINK
You can use the new ASP.NET 4.5 Bundling and Minification features. To see how to add them to Web Forms, check this blog post: http://blogs.msdn.com/b/rickandy/archive/2012/08/14/adding-bundling-and-minification-to-web-forms.aspx
Darrell Norton's Blog
Please click "Mark as Answer" if this helped you.
KulerMaster
Member
206 Points
326 Posts
Re: Loading Multiple CSS files in a single HTTP Request
Jan 08, 2013 09:52 PM|LINK
Unfortunatelly we use FW 3.5
Do you think if i read all 20 files using StreamReader and then put in the header, will help?
Catherine Sh...
All-Star
23373 Points
2490 Posts
Microsoft
Re: Loading Multiple CSS files in a single HTTP Request
Jan 15, 2013 09:13 AM|LINK
Hi,
In order to resolve your issue, please check CssMin which is a css parser and minfier. It minifies css by removing unneeded whitespace character, comments, empty blocks and empty declarations.
For details, please check the link below:
http://code.google.com/p/cssmin/
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store
KulerMaster
Member
206 Points
326 Posts
Re: Loading Multiple CSS files in a single HTTP Request
Jan 31, 2013 11:40 AM|LINK
I ended up merging all stylesheets into one and it worked just fine for me. Thanks for reading ...