Tag Archives: WordPress

Behind the Websites: Delay loading of print CSS

Recently I stumbled across an article detailing browser performance with the CSS print media type. In most recent browsers the print stylesheet held up rendering.

The article suggested a solution, which I decided to automate for WordPress.

Behind the Websites: Thesis V WordPress, Pearson V Mullenweg

Mullenweg believes that, because WordPress is released under the GPLv2 license, all themes and plugins developed for WordPress must also be released under the same license. Pearson disagrees. I believe that Mullenweg is wrong. WordPress themes can operate on other blogging platforms with minimal changes.

Behind the Websites: Getting the bloginfo correctly

One of the standout problems when using plugins with WordPress MS is when they define a constant for the plugin’s url as the script starts executing.

Behind the Websites: ‘Skip to Content’ Links

Josh and I were discussing the positioning of Skip to Content links on a website. In the past I’ve placed these in the first menu on the page, usually positioned under the header.

Behind the Websites: JavaScript the WordPress Way / Part 2

In Part 1 we introduced the wp_register_script and wp_enqueue_script functions developed to avoid JavaScript conflicts.

In this section we’ll deal with a more complicated example. We’ll also take what we’ve learnt about including JavaScript and apply it to our CSS.

Behind the Websites: JavaScript the WordPress Way / Part 1

Problems arise when your theme or plugin both use the same JavaScript library or if Prototype and jQuery are both used on the same site.

Two of the most important WordPress functions are often ignored by WordPress theme and plugin developers. Introducing: wp_register_script and wp_enqueue_script.

Behind the Websites: Charging for themes? Do the right thing!

Of all the Wordpress functions, I think wp_register_script, wp_register_style, wp_enqueue_script, and, wp_enqueue_style are the most elegant.

Behind the Websites: Including WordPress’s comment-reply.js (the right way)

Since threaded comments were enabled in Wordpress 2.7, most themes check if the visitor is browsing either a page or a post and adds the JavaScript required for threaded comments if they are.

I prefer a slight variation