Archive for the ‘wordpress’ Category

WordPress Security

As well as making your wordpress site run faster, you must always make sure it’s not open to hackers and people wanting to exploit vulnerabilities.

As someone who’s recently had to handle several wordpress sites being hacked in one way or another, these are my bits of advice. Most are common sense, but it’s good to be reminded to do them:

Read On…

Problems with deferring the JavaScript

Just a heads up for anyone running the deferred JavaScript plugin that I’m using on this blog. I’ve been running it on some of my other sites to improve the page load speed but it is a little bit fiddley.

So, on one of my other sites, I have a little more content and some additional features that are controlled via plugins. Some of these plugins inject some JavaScript into the page that relies on jQuery, but as I’m deferring the loading of jQuery, the inline scripts fail and throw errors saying that jQuery is undefined.

A bit annoying really, but not unexpected. So that’s the next challenge, either finding some better plugins that don’t rely on jQuery for simple things that vanilla JavaScript could quite easily do itself without a stupid dependancy, or work out a better way to defer the JS in a nicer way.

As with all of the work I’ve done on this blog so far, I want to do it without having to actually right a lot of code so it’s the type of thing anyone can do for their own blog as I know that not everyone is interested in using a lot of custom code.

If anyone has already taken on this challenge, let me know. Maybe we could come up with a post on solving it together.

Setting up an Amazon CloudFront CDN

Since my post about setting up a basic WordPress site I’ve added a few more plugins to this site for things like Google Analytics, minimising image sizes and defer loading JavaScript files.

I load Google Analytics through Google Tag Manager and this isn’t the most high performing script so that’s a challenge I’ve got for later.

The other plugins, however, are performance related and will help keep this site quick as it grows.

The other big step I’ve taken is to set up a CDN (Content Delivery Network) using Amazon Cloudfront. Read on to see how I did it.

Read On…

A simple WordPress setup

There are some classic mistakes that you can make with WordPress and I’ve seen it happen again and again. Plugin addiction is a serious condition and once you have this condition it’s hard to get over it. The best way of combatting this disease is to prevent it from happening in the first place. Read on to see what plugins I use by default.

Read On…