News roundup: the performance of feature detection, Mobile Firefox 4 performance, W3C Touch Events
The performance of feature detection
For a bit of a grain of salt, check out Faruk Ates’s response, cautioning against user agent sniffing.
EDIT: Also check out John-David Dalton’s two part video response arguing in favor of feature testing, based on real-world data showing what he argues to be a small performance hit.
Mobile Firefox 4 Beta performance
Mobile Firefox has been a bit of an ugly duckling on the mobile browser scene, getting little attention compared to Mobile Safari, Android, and even webOS. However, this week it proved itself to be a true dark horse by coming out of nowhere and blowing away the performance of every other mobile browser.
Arstechnica ran the SunSpider test on a Nexus One with Android 2.2 and found Mobile Firefox 4 Beta completed the test in a record 3,558ms, beating the native Android browser, which finished at 5,742ms.
On the Mozilla Blog they proudly announce the latest release, mentioning faster startup, page loads, and faster panning and zooming. They also mention the new release is about three times faster on their own Kraken benchmark, about twice as fast on SunSpider, and just a bit faster on V8 (proving once again that not all benchmarks are created equal).
W3C Touch Events
This is obviously still a very rough and in-progress document, but what’s most interesting is a deviation from Apple’s spec in the introduction of touchenter and touchleave events (at the request of ppk), which are analogous to mouseenter and mouseleave originally implemented by Microsoft years back.
Which if you remember, is equivalent to alert(1).
For those really interested in unreadable code, also be sure to check out aaencode, which converts your code to Japanese style emoticons
JS Boot Camp (February 10-11, 2011 in Reston, Virginia, US)
High-Performance Mobile (SF Web Performance Group) (February 16, 2011 in San Francisco, CA) – a talk given by yours truly
Confoo.CA: Web Techno Conference (March 9-11, 2011 in Montreal, Canada)
MobileCampRDU (March 12, 2011 in Durham, North Carolina)
codeconf (April 9-10 in San Francisco, US)
JSConf 2011 (May 2-3, 2011 in Portland, Oregon, US)
NodeConf 2011 (May 5, 2011 in Portland, Oregon, US)
jsday (May 12-14, 2011 in Italy)
Mobilism (May 12-13, 2011 in Amsterdam)
TXJS (June 5, 2011 in Texas)
You can now see the most popular jsperf test cases
HTML5 canvas sprite optimisation shows you why you should round your numbers to the nearest whole number when working with canvas. Related: Iain Lobb’s BunnyMark benchmark (bunnies + performance)
Abusing HTTP Status Codes to Expose Private Information
ECMAScript 5 strict mode in Firefox 4
The WebKit PreloadScanner
HTML5 Canvas 3D particles uniform distribution
The Harmony Of My Dreams
opencoweb: Cooperative Web Framework
A dash of speed, 3D and apps (Google Chrome Blog)
Game On Winners: Level Up the Open Web (Mozilla Labs)
An Intro to Backbone.js: Part 1 – Models and Collections
Introduction to jQuery Mobile
JSApp.US is a nice node.js hosting platform to get code up-and-running in short hack projects.