Use Google-Hosted jQuery in Your WordPress Theme
How many sites use popular JavaScript libraries like jQuery? A lot. That’s why Google hosts many of them on their speedy CDN, so browsers only have to download jQuery or Prototype once in a day,...
View ArticleLike it? Tweet it! A JavaScript TweetMeme Alternative
“Like it? Tweet it!” is a new JavaScript widget by Andy Graulund that, using Twitter @Anywhere, provides an easy way to display a box for people to tweet about your posts. It automatically loads a...
View ArticleLazy-Loading Images
You may have noticed that a lot of large blogs, like Smashing Magazine and the TUTS+ network, are “lazy-loading” images in their posts. Sometimes, as you scroll through a post full of images, you might...
View ArticleMediaElement.js — HTML5 Video Player With Flash Backup
Many modern web browsers have early support for the <video> and <audio> elements in the HTML5 spec. Unfortunately, their implementation varies depending on the ideals of the various browser...
View ArticleTempo: A Tiny JSON Templating Engine
Tempo is a 4kb JavaScript library that renders JSON into an HTML template. Your script can take something like this… <ol id="tweets"> <li data-template> <img src="{{profile_image_url}}"...
View ArticlePure JavaScript QR Code Generator with jQuery
Need a fast and lightweight way to generate QR codes in-browser, without relying on a third-party service? There’s a new jQuery plugin that’s exactly what you’re looking for. Weighing in at only 4kb,...
View ArticleGet Twitter and Facebook Link Statistics with JSON and jQuery
Both Twitter and Facebook have little JavaScript widgets that allow you to share a page using the respective service, displaying a running total of users who have done so. While that’s fine for most...
View ArticleGoogle +1 Content Unlocker with jQuery
You’ve probably seen sites like MacHeist and Make Use Of run promotions where you can unlock a software license or enter a drawing for an iPad by posting a message to Twitter or Facebook and then...
View ArticleUsing Google-Hosted jQuery With a Local Fallback
Referencing commonly-used JavaScript libraries, like jQuery, stored on Google’s CDN is a good way to speed up your site. Many popular websites do so, which means the chances of a user having jQuery...
View ArticleGetting More From Twitter Bootstrap’s Typeahead Library
Twitter Bootstrap comes packaged with a simple auto-complete library that’s stylistically integrated into the CSS framework. It’s convenient, but not the most-documented part of Bootstrap. I was...
View Article