robinadr

Posted in robinadr.com

Domain Moved to NearlyFreeSpeech

December 25, 2011

Google’s Hosted jQuery with WordPress

January 21, 2011

Update: I’ve modified the plugin to use a generic URL (.../1/jquery...) which loads the latest 1.x version. That way I don’t have to change the plugin everytime jQuery is updated.

The ZIP file has been updated, just overwrite your old googlejs.php file and everything will be gravy.

In an effort to save bandwidth, I made a quick plugin to modify WordPress to use Google’s Libraries API, which offers a Google-hosted jQuery. Here’s the code in question:

function radr_google_js( &$scripts ) {
    $scripts->remove( 'jquery' );
    
    $scripts->add(
        'jquery', // shortname
        'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js', // url
        false // dependancies (none)
    );
}

add_action( 'wp_default_scripts', 'radr_google_js' );

If you’re interested in using this on your own site, you’re welcome to download this quick plugin. Just follow standard procedure — unzip, copy to wp-content/plugins, and activate.

Pay as You Go Hosting

January 14, 2011

Seeing as nothing ever happens on this site anymore, I’ve switched it to Nearly Free Speech hosting, which bills itself as “the original home of only pay for what you use hosting.” Why? Even though DreamHost has a pretty good plan (unlimited disk usage and bandwidth for $10.95/month), by the NFSN price estimate I can cut that yearly cost by 1000%.

It’s been a breeze to set up; took about 4 hours total to make the move (3.5 of which was waiting for DNS to propagate), and, as a plus, the site seems much faster in general.

Back to ignoring the site for now.

Titan

March 9, 2010

robinadr on Titan

I’ve switched the site over from a very customized Grid Focus theme to Titan by the Theme Foundry. I found it after searching through many pages of the WordPress theme directory. What I especially like about it are the colors as well as the layout.

It also comes with extensive options for customizing what goes where, especially in the sidebar and the header, which was a nice surprise. I originally intended to design my own theme, but that is honestly too much work.

Housekeeping

December 29, 2009

With a bit (a lot) of spare time over the holidays, I’ve done some housekeeping around here. Including updating plugins (more on that in a bit), deactivating plugins that I haven’t used in, well, years, and poking around in cPanel. I can’t tell if it’s just a Placebo or not, but it definitely feels a lot faster. Continue reading “Housekeeping”