Tag Archives: javascript

Removing Debug Statements from Javascript via compiler

We all know the pain of getting a bug filed against some of your code and having to dig through it later to find the root cause. Especially, since many times we end up having to add back in all of our debug statements in order to track down the issue. There has to be [...]
Posted in Closure, Compilers, Debugging, JavaScript | Tagged as: , , | Leave a comment

Parallel Downloading HTML Assets

Question: Image - inline Script - image, are the images parallel? Souders just posted the following tweet. Someone out in #webperf land should test how inline scripts block downloads - eg, image - inline script - image - are the images parallel? So here is my response to the question...
Posted in JavaScript, Performance | Tagged as: , | 1 Comment

Patterns for enforcing “new”

Recently I was looking around for a book on JavaScript Patterns. I decided to give the JavaScript Patterns by Stoyan Stefanov a try. If you have been looking for a book on Javascript Patterns, I highly recommend this book. In the 3rd chapter, Literals and Constructors, I noticed this section on "Patterns for enforcing new" [...]
Posted in Do This, Not That, JavaScript | Tagged as: , | Leave a comment

JavaScript Performance Testing – An Indispensable Tool

Over the course of the last couple of weeks I have been looking into various tools to test Javascript Pefromance. I needed a way to test various JavaScript code snippets to see the overall latency/run time of each. I started looking for a way to manage the tests and be able to reference them in [...]

Posted in Performance | Tagged as: , | 2 Comments

Underscore.js

Coming from a more technical backend role, and moving into JavaScript many people tend to look for very common functions to make their life easier. However, since JavaScript is considered a "functional" programming language, most of those little conveniences are currently unsupported. So I went searching a bit. Turns out there is a nice little [...]

Posted in JavaScript, Underscore.JS | Tagged as: , | 6 Comments

Custom Events in jQuery

*quick note: I originally posted this on trulyevil.com. However its time to move sites and actually keep something up and running for a while. Events seem daunting at first, but really jQuery makes them super simple. Events can be used to alter behavior or even have multiple events happen on a single state change. We [...]
Posted in jQuery | Tagged as: | 6 Comments