Posts Tagged ‘javascript’

Google Pac-Man Hacking

Quick Hack Here’s a literally 2 minute hack for the Google Pac-Man tribute on the homepage right now to put your own face on Pac-Man (pardon my poor photoshopping): To try it add the following bookmarklet to your browser by dragging the link below to your bookmark bar: raccettura-ize pacman Now go to Google and […]

Where Is The Asynchronous AdSense Google?

Anyone who cares about website performance comes to the quick realization that ads are a huge slow down. They are also the source of income for many websites. I somewhat casually mentioned back in December that Google was beta testing an async Google Analytics call. I found a bug in the early version but since […]

JavaScript Flash Implementation

I meant to post this last week already. Gordon is a JavaScript implementation of Flash. You read that right. It’s written in JavaScript and executes swf files. It’s performance isn’t the same as the Flash player, but it’s surprisingly good. This is really cool stuff. With JavaScript performance improving people are really starting to demo […]

Adventures With document.documentElement.firstChild

Here’s an interesting DOM test-case I ran across inadvertently yesterday. For the purpose of this post assume the following markup: < !DOCTYPE html> <html> <!– i broke the dom –> <head>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>     <title>Testcase</title> </head> <body> <p>Something</p> </body> </html> If I use document.documentElement.firstChild I don’t get consistent behavior. In […]

Browser Detection In JavaScript Libraries

I was curious what browser detection in various JS libraries look like. While we always try to avoid doing browser detection, it’s sometimes a necessary evil. Here’s what I found.

JSNES JavaScript NES emulator

Ben Firshman wrote a rather impressive NES emulator. There are already quite a few NES emulators out there already this one impressive is because it’s written in pure JavaScript. Yet another application of “Atwood’s Law“: Any application that can be written in JavaScript, will eventually be written in JavaScript. I should note that I mentioned […]

JS Super Mario Brothers

Here’s Super Mario brothers rewritten in JavaScript. It’s remarkably well done, even the physics closely match that of the original game. The only thing I noticed was a slight lag in Firefox 3.0.5 which I suspect might be due to the speed of the events rather than the actual game. There have been several attempts […]

Object-Oriented Masturbation

Doing some research for an upcoming installment of an infamous series of blog posts (to be released at an undetermined date) I’ve come to notice this annoyance. In general I like object-oriented programming. I think it allows you to take a complicated problem and produce simple, more reusable and easier to maintain code. Assuming the […]

MAMA Scripting Analysis

Opera did some interesting research into JavaScript used on the web. As someone who writes a fair amount of JavaScript and reads through countless lines of other people’s scripts, I found this to be pretty interesting. Overall none of the results were very surprising, though a few things did catch my eye: Omniture/SiteCatalyst Analytics ranks […]

jQuery

Pretty big news from the jQuery camp today. Both Microsoft and Nokia will be making it part of their development platforms. Extra interesting is that they aren’t forking, but utilizing the existing code under the same license, and will contribute and participate like everyone else. I’ve been using jQuery on sites for quite a while […]