This article strongly recommends that “everyone start using strict mode now.” It explains that strict mode makes debugging faster and easier by disallowing “some of the most common and egregious errors.” A few of the more obvious changes are reviewed. Don’t skip the comments section – it’s helpful, too.
This article concisely describes five improvements in Firefox 11, which was released last week. Faster page loads is one of the five.
This web page is an example of using async with ControlJS on a page that uses two external scripts and one internal script. It includes a waterfall chart and a brief analysis of the page’s load time. The page includes links to other similar examples.
- different ways to see if an element belongs to a particular class
- JSFace vs. my.Class vs. John Resig’s class vs. Klass vs. Classy vs. PTClass
- for vs. while; body appends to document.body.innerHTML
- accessing this directly vs. accessing it through a named object
- using braces in an if vs. not using them (empty then clause)
- getElementById vs. querySelector
- appending to a div directly vs. via a newly-created fragment vs. via a detached element