Howard Dierking Shows You How to Optimize Your ASP.NET Sites

Download this episode

Download Video

Description

Visual Studio 2012 will introduce optimization features for all ASP.NET project types. Howard Dierking introduces this awesome new feature in this episode, and shows you how to drastically shrink your response size as well as increase page download speed and site performance. Using the network analysis tools in Internet Explorer 9, Howard demonstrates how the bundling and minification features can drop your page size by half. If you're trying to make your sites load faster, this episode is a must-see.

Tag:

ASP.NET

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Gareth

      ^ Wow what a useless spammer! lol

      I believe there is a bug with the CSS/ JS bundling. It appears that the hash is recalculated on EVERY request, so if you have a number of files there (for instance jQuery-UI)it adds a noticeable 6-10ms delay. On a production website this is significant. I think this work better if there was even a short e.g. 30 second cache, or better still making it regenerate when the contents of the folder changes.

    • User profile image
      Tugberk

      great show guys. thanks!

      The CDN scenario that Howard talked is the one I am waiting for a long time. Here is what I do now:

      I am getting the JavaScript libraries through Nuget. So, they go to Scripts folder under the root of my project. And some css files through nuget as well (like TwBootstrap). They usually go to Content folder. By not changing the file locations, I am able to update them smoothly via nuget. So, they stay as they are. 

      But I want to get the bundled and minified files under ~/assets/js/ and ~/assets/css/ which is better for me to sync this assets folder with my CDN storage.

      So:

      • I have an xml file which I define the bundles and minification rules.
      • I have a PowerShell script which does the bundling and minification with the help of AjaxMin.exe and put the output files inside the desired folder.
      • Then I integrate this powershell code with my build script for the solution.

      Here is initial code that does this: https://gist.github.com/2852551 The powershell code is really bad right now and needs to be refactored.

      I am not sure if the solution you guys are considering supports a scenario to output the files under another folder (if these are css files, there will probably be image files to go into that output dir as well.)

    • User profile image
      teoman

      really good video content.

      Thanks for sharing.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.