Category Archives: JavaScript

The Great Assumption – Javascript

A couple of weeks ago I was sitting down with a Google Frontend Engineer friend of mine, talking about some of the JavaScript best practices we all have come to know and abide by. I found myself in agreement with 90% of everything we were talking about. However, something kept eating at me. Why do [...]
Posted in Do This, Not That, jQuery, Performance | 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 Templates

After the post about why Underscore.js, I think it is best to follow up on one of the best parts of the library. Now, I haven’t had a chance to go through the new templating in jQuery, however what I have found with Underscore.js has allowed me to complete some very complicated tasks in my [...]
Posted in JavaScript, Underscore.JS | Tagged as: , | 9 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

Finding an Element outside of your current iframe

Sometimes you are working within an iframe and need to be able to check for an element outside of that frame. It sounds simple enough, and you are right. The following bit of code grabs an element outside of your current iframe: if (typeof window.parent != "undefined"){ window.parent.document.getElementById("SOMEID"); } Pretty simple! Now, lets look at [...]
Posted in JavaScript | Tagged as: | Leave a comment