Category: javascript

« Previous Entries

Building a standalone JavaScriptMVC controller.js

I’ve been doing a lot of work lately with a client who’s using just the controller portion of JavaScriptMVC. I plan to write a more in-depth post about this while I’m traveling this week, but in the meantime, I wanted to jot down the steps to create the standalone controller.js file for my future reference. [...]

Demystifying custom events in jQuery

This article originally appeared in the May 2009 issue of JSMag.
We’re all familiar with the basic events — click, mouseover, focus, blur, submit, etc. — that we can latch on to as a user interacts with the browser. Custom events open up a whole new world of event-driven programming. In this article, we’ll use jQuery’s [...]

I’m teaching a jQuery class!

One of my goals this year was to get up in front of people and talk. To that end, I’m happy to announce that I’ll be teaching a jQuery fundamentals class July 29-30 at Carrboro Creative Coworking in Carrboro, N.C.
In my work with jQuery beginners, I often find that the library is so easy [...]

New JSMag out today

The second issue of the new JSMag is out today, and among other excellent content, it includes an article from me about using object literals to organize your JavaScript features. Some good stuff for people who may be accustomed to writing more procedural jQuery. Here’s the setup:

In the past few years, JavaScript libraries have given [...]

JSMag: Volume 1, Issue 1

Just a heads-up that I was lucky enough to be asked to write an article for the first issue of JSMag, a new magazine published by Michael Kimsal and dedicated to all things JavaScript. The magazine will be coming out in the next day or two, and features articles about unit testing, ExtJS, JavaScript debugging, [...]

Could the brilliant people at Google please just solve this already?

Ajaxian has the latest article I’ve come across about remote Javascript using document.write() (and a bit of a related issue when it comes to Google Analytics). They link to yet another way to get around it by hijacking the browser’s document.write(), just as John Resig suggested to me the last time I complained about this.
I [...]

Another cautionary remote Javascript tale

It sounds like TechCrunch got burnt yesterday by some remote Javascript appearing too high in their pages’ HTML. Visitors’ browsers were waiting and waiting for the remote script to load, and refusing to render the rest of the page until it did.
All we knew is that our sites all simultaneously went down three times yesterday. [...]

Remote Javascript with document.write() is killing me

I have been coming across way too much remote Javascript that uses document.write() to insert its contents. From ad providers to video hosting services, it’s common practice to provide a Javascript tag like:
 
<script src="http://some-remote-server.com/some-tiny-file.js" type="text/javscript"></script>
 
and tell the site owner to just include it in their page where the ad or content should appear.
This is [...]

Fix for slow-loading Google ads

Google’s AdSense ads, and lots of others, are added to pages using Javascript, and if that Javascript appears early in the page’s HTML, it can seriously slow down the rendering of the rest of the page. That’s because browsers generally refuse to do any further rendering of the page until they have a requested Javascript [...]

Triangle Javascript Users Group

My friend Matt Henry and I are going to try to get a Javascript users group started in Durham so we can meet other users (and probably do a bit of jQuery evangelizing). If you’re interested, visit the Triangle Javascript Users Group page, and join us at the Federal in downtown Durham on May 6.

« Previous Entries