Consolidate CSS and JavaScript in WordPress
If you’re on WordPress and are using a lot of plugins, chances are that your blog is slower. No, not because of the plugins’ functions — that’s easily mitigated by WP-Cache — but because each of the plugins is inserting its own JavaScript and CSS into your blog. This causes users to have bigger page downloads and more HTTP requests, slowing everything down.
Note: This tutorial is for advanced users. Be careful! I screwed my blog’s commenting up for a while after posting this. :) I do not recommend messing with scriptaculous stuff — just leave it be. If you’re a novice, you probably don’t care about your site being a little bit slower, so this isn’t worth the effort.
Background
The best thing to do is to consolidate your CSS and JavaScript into singular files. This isn’t always possible — sometimes, the contents of included CSS and JavaScript depend on variables set in the plugins — but usually the included JavaScript and CSS are static.
Have you seen the
Have you ever had a really fantastic banana? Have you ever remarked, “wow, that was a scrumptious banana?” Because I haven’t, and I’m convinced it’s the most boring fruit going. It’s truly the
Now I’m no expert on the origin of superstitions, but that seems pretty damn lame to me. Bottom 25th percentile, for sure. “Insult the local sun god?” We’re doing this because of a local sun god?