Browser Rendering - Getting Computed Style is Hard

Recently I was looking into how libraries like jQuery get the compute style of an element. I found that in its simplest form, getting computed style is one step:

function getStyle(el, prop) {
	return el.currentStyle ?
		el.currentStyle[prop] : // IE
		document.defaultView.getComputedStyle(el, "")[prop];
}

Read ›

5 Common Ways to Abuse jQuery

jQuery is great. It is powerful and quick. But with any power comes abuse. Here are some common ways to jQuery is abused.

Read ›

Element Wrappers in JavaScript

Element wrappers are coming. We are going to see more frameworks using wrappers for JavaScript DOM Elements.

Read ›