When it comes to image preloading, developers have a couple of options to choose from. The easiest and most popular is typically a combination of CSS properties. Some approaches load the desired image as a background-image for a hidden element. Some make use of sprites and background-position. But sometimes CSS won’t suite yer’ fancy. For instance, images loading to a page dynamically which originate from a CMS. In this example, it would be extremely difficult and not very useful to use sprites. You could potentially use hidden background-images but if you need a higher level of control over that image in the DOM this technique may be for you.
Read the rest of this entry »

Optimizing and refactoring jQuery code is not as difficult as it seems. You do need to be aware of the most currently available methods though, so below we’ll examine the new to 1.4.2 method .delegate().
Read the rest of this entry »

This post will explain how to add a custom Twitter widget without all of the Twitter branding. Below you’ll see an example containing clean style-able markup without all the birds flapping around.
Read the rest of this entry »
Note: This article is for the latest version of the tracking code. If you are using the older version, please read the following article.
To determine which tracking code you are using, please see Which version of the tracking code am I using?
It’s easy to have Google Analytics track clicks on links that lead to file downloads. Since downloads generally do not lead to a pull page that would contain the tracking code, we have to make notifying Analytics of a special event. We do this through _trackPageview(). The following code will assign a pageview to the specified link so Analytics will treat clicks to it as a a view of this pseudo-page.
Read the rest of this entry »
recent comments