How to Time JavaScript Execution on the Client-side.

Sam RuebyWeb Development Leave a Comment

I just found a quick and easy way to time how long a section of JavaScript took to execute. In Chrome, use console.time(string) and console.timeEnd(string) . When timeEnd is called when the same string provided to time, the string and a duration in milliseconds is printed to the console. Found here.

Vacation Week!

Sam RuebyUncategorized Leave a Comment

I’m on vacation this week but that doesn’t mean I’m too cool to do a quick blog post. Below are some interest blog posts I’ve read recently. Zanshin: Learning the Art of Attention and Focus From a Legendary Samurai Archer Contributing to Chromium: an illustrated guide On how to do everything Say No to the Repository Pattern in your DAL …

Visual Studio Extension to Compile Sass

Sam RuebyCSS, Uncategorized, Web Development 29 Comments

I’m very excited to have written my first Visual Studio Extension. Prior to this, my team and I heavily relied on Web Essentials 2013. It was somewhat clunky: it compiles simple Sass files very well. However, we kept running into a few issues: It wasn’t always up to date with the latest version of Sass, making it difficult to use mixin …

ASP.NET MVC BundleConfig, scripts returning an empty response?

Sam Rueby.NET Tips, Web Development 2 Comments

The Visual Studio template for ASP.NET MVC 5 comes with Microsoft.AspNet.Web.Optimization, which is used in BundleConfig they provide you. I haven’t used this much and wanted to try it. I wiped out the default stuff and included a line for the only script I needed. public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles( BundleCollection …