1、You can imagine the spaghetti code when dealing with all of the browsers it must support.

2、This causes a lot of spaghetti code and implies that there will be a lot of code shipped to the browser that is never executed on the browser.

3、Still, I wanted to put something together that was a little bit better designed than a few pages of spaghetti code.

4、That's exactly how spaghetti code (where you have tangles of point programs) gets created — while it's quicker to produce, you really don't want to end up maintaining all that crud.