JavaScript is Awesome; IE Might Be

Short story: Deadline is approaching and I am losing sleep. I have a small web application going out to replace an existing one and it is running horribly slow in Internet Explorer (IE). It runs fine in terms of speed and performance in all other major browsers. I’ve used logging, disabled code, disabled CSS, disabled Flash components. I even made the core functionality for the feature drag and drop implementation ugly boxes. Nothing. Check the following line of code. It’s completely innocent and always returns a value. Let’s assume it’s ’70′.

var rows = document.getElementById("totalNodes").value;

A couple lines later I add it to 1 and I get 71. The problem is that instead of building 71 objects with YUI’s DDLinst function I have now built 701. String concatenation: bend over and crash IE for ignoring that little detail Mr. developer man.

var rows = parseInt(document.getElementById("totalNodes").value, 10);

So anyway, that takes care of that problem. Parse it as an integer base 10 and it’s solved. But wow, what a challenge finding it. I feel a little embarrassed for being had by a simple thing like getting a string out of a variable but that’s another little thing that is fixed and solved and I’m happy.

A lot of folks might complain about IE for this (this being IE not gracefully allowing stuff to happen like all the other browsers) but in the end if it weren’t for IE being picky I’d probably have never found and fixed this huge memory/processor gobbling leak. Sure, IE continues to disregard well known CSS standards. It keeps us developers on our toes.

Jerry got into EVE and I’m full bore into it as well. It’s a fantastic game for geeks and although it can be referred to as “spreadsheet in space” I think over the last 4 years it has significantly improved. Crystal is playing Aion via the developer beta and she’s been really thrilled with it. I’ve been watching her and I am impressed as well.

Also, out of curiosity, Blizzard launched their new Battle.Net design, EULA, and features. I think it is quite obvious they are going to contend with Valve’s Steam and other digital publishing mediums. Why shouldn’t they: they have the cash for sure. I think we’ll see more of these studio publishing paradigms crop up and eventually settle to a core group.

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.