Beantin

James Royal-Lawson

tips

5 basic (and practical) ways to make your site load faster

Faster is better. There’s no arguing about it. Google likes faster pages, people like faster pages. Your 3G wireless connection loves leaner, slimmer pages. God damn, your shareholders love them too!


Website performance optimisation, like search engine optimisation – or any optimisation – is a fine art. It also follows the law of diminishing returns. The largest efficiently gains can be made from a handful of optimisations. Futher gains are possible but at an increasingly higher cost.

5 basic tips

Here are 5 practical ways that you can improve the load time of your web pages.

  1. Head stuff. Put CSS first, Javascript last – Javascript blocks loading the other files in the head part of your HTML. Put your CSS and Javascript in as fewer files as possible, and minify them all.
  2. Width and Height. Declare width and height on all img tags – this reduces the need for browser redrawing/reflow once images are loaded. Yes, you can set the size in CSS, but in the tag itself is marginally better and often possible for web editors to do themselves.
  3. Code efficiently. Both HTML and CSS. Deeply nested div tags, empty div tags and overqualified CSS-selectors make James cry. For many this will be the least practical suggestion in this list.
  4. Static content. Serve static content using a CDN or (for example) Amazon S3 and a separate domain (for example, I use media.t1n.se). With Amazon S3 it is very easily for any website to spread requests over 3 domains if needed. An additional advantage of a separate domain is that you can keep it cookie-free, reducing requests and bandwidth even further. Exception: serve your CSS from your main domain.
  5. Trim the fat! Have less stuff on your page! – Ground breaking advice I know, but it’s too easy to let your web pages become cluttered, especially with sliding banners, widgets, and other externally hosted scripts. Use ROPS to assess the cost of new features.

Bonus tips

It goes without saying that you should be using gzip compression and sensible caching policies on your web host – if you’re not already, then it’s likely that fixing it is probably not “simple” (or unfortunately someone somewhere isn’t up to their job).

Google’s page speed analyzer which is available as an additional to the Firefox add-on Firebug gives some excellent feedback on the state of your web site, including practical tips. It also provides optimised images and compressed scripts as ready-to-download files.

Yahoo have written up best practices with regard to improving site speed. The list includes 35 different tips, and should keep you going a fair while.

Finally, this article is a great bit of further reading and gives detailed advice but written in a way that makes it accessible for more than just the front-end web developers it targets.

Responsive

If you are working on a responsive website, then congratulations! Make sure website performance optimisation is a clear part of your work. It’s more important than ever in these types of websites and has a huge impact on the user experience.

If looking for ways to optimise your website feels a little beyond you, get in touch, I’d be more than happy to help you out.

James Royal-Lawson+ is a digital strategist, optimiser and web manager based in Stockholm Sweden.

The complete website redesign: why you should avoid it

Never do a complete redesign & rewrite of your website in one go.

Many companies are still locked in a 3-5 year redesign cycle – a point is reached when the unhappiness with their website reaches such a level that a total redesign is ordered.


The website redesign cycle

While we’re at it

A “while we’re at it” attitude comes into action.

While we’re at it…

  • we’ll redesign the look of the site…
  • we’ll change the interaction design…
  • we’ll rewrite all the content…
  • we’ll change the navigation and structure…
  • …and what the hell, we’ll change CMS while we’re at it too.

Sounds like a good idea doesn’t it? Well, not really. There are very few situations where I’d advise an organisation to do a complete and utter redesign, rewrite, and rebuild of their website all at the same time.

Much more complex

Not only do all those changes executed at roughly the same time require quite a sizable heap of cash, they also increase the complexity of the project by several orders of magnitude.

The increased complexity often translates into; the overunning of the project in terms of both time and money, poorly researched decisions, difficulty in making sensible decisions.

Furthermore, we’ve got the poor old user. If your repeat visitors make up a significant segment of your visitor base, consider what a complete re-working of your site will do to their world.

Search Engine impact

Finally, the big one. Something regularly under appreciated is just how symbiotic the relationship between your website and the internet really is. Everything you publish is analysed and indexed by the search engines. Other sites link to your content – perhaps many of them deep link to content beyond your index page.

Digital fingerprint

This presence, your old website, is a digital fingerprint. Google webmaster tools (and similar services) can give you an idea of what that fingerprint looks like.

What Google (and other search engines) think about your site is made up from all the words you use across all the pages on your site, its URLs – as well as; page titles, internal links, incoming links, the anchor text of all those links, and numerous other signals.

If you rewrite all of your content, change all your URLs, and redesign all your pages – all at the same time – how do you think that impacts on your fingerprint?

Minor surgery

So if a complete redesign – a full monty – is out of the question – what should you do?

Minor surgery, rather than heart surgery. Tweak. Constantly evolve. Change a few pieces at a time. Measure and test how well those pieces work. Adjust them, rewrite them, tweak them. Measure again.

Support network

If you for whatever reason can’t avoid the big bang, or you come onboard too late to steer the ship clear of the iceberg – then make sure you’ve got the right support network. The complete website redesign is the biggest challenge web management can throw at you.


is a freelance web manager and strategist based in Stockholm Sweden.

Google Analytics: 7 things to do when you first start

If you are starting out with Google Analytics for a site (or sites), then there are a few first steps you should follow. Here are 7 tips to get you up and running…

1. Create an account

Make sure you sign up using a company email address, Preferably a non-personal one such as google@yourcompanydomain.com. This will make things much easier in the future, such as when you change roll, change your digital agency, or leave the company.

2. Think about your account/profile structure

Put some time into thinking how you are going to structure your Google Analytics account. There are accounts and profiles. This will be confusing at first. Without a bit of thought when getting started you run the risk of having a structure that further down the road you realise just isn’t right for you.

Google uses the analogy of a House with a number of rooms. An account should be a collection of related things – could be a brand, or a company. Profiles are the things; a particular blog, website, filter of another thing.

3. Insert the tracking snippet into your site

Make sure it’s the right version and in the right place – and working! It might be the case that an agency or a consultant has helped get you this far – double check and make sure they’ve used the latest version of the tracking snippet. The latest version at the time of writing is the asynchronous snippet.

Look at the source code of your site and compare the tracking snippet to the one shown on this page. If it looks more like this snippet, say thank you and goodbye. If they are putting the old snippet on new installations, they don’t know what they are doing.

4. Give your personal google account access

Yes Google are making it easier to switch between accounts, but you can’t do that yet with GA – so make life a little easier and add the Google account you normally log in with as a user for each account.

The best place to add yourself is via the user manager. You can find a link to the user manager towards the bottom of the account start page. From there you can give yourself access to all profiles within an account. Make sure you add yourself as an administrator.

5. Turn on site search

If your site is more than just a handful of pages, then there’s a good chance you’ve got a search box – or site search as Google calls it.

Turning on the tracking of site searches means that Google Analytics will record the search queries your visitors enter into your on-site search box. This can give you vital information as to what is important to visitors (and what they struggle to locate it via your information architecture and design).

6. Filter internal traffic

Every website has a significant number of visits from employees (or the site owners). This is a very distinct set of visitors, with different visitor goals and behaviour to your other target groups.

For many companies excluding internal traffic is quite straight forward as all Internet browsing usually goes through a gateway or a proxy. This means that internal visits will come from a known and limited number of IP addresses.

You should exclude this traffic, but I recommend that you also create a new profile for internal visits – as this means you can analyse the traffic if you need to.

Add an additional profile to the existing profile for your site. Perhaps with the same name as the original profile but with (internal traffic) as a suffix. Then create a filter that excludes everything apart from internal traffic. This means selecting “include only” instead of “exclude” when setting up the filter.

7. Get to grips with the basics

Learn what various figures and data actually mean – not all the statistics are necessarily what you think they are. If you’re going to be making business decisions based on GA stats, at least take the time to get to know them a little better first.

Traffic sources, bounce rate, and time on site, are three examples of data that is commonly misunderstood within Google Analytics.

Facebook Places: how to set who can see you

Facebook Places is continuing to roll-out across the world. Today it was launched in the nordic countries of Sweden, Denmark and Norway. To help you maintain a bit of control over your information and who gets to see where you’ve checked into I’ve created this guide.

Control your visibility

Not everyone wants the entire world to see where they are. You might not even want all of your “friends” to see. Perhaps you don’t want your parents to know which bar you’ve checked into – perhaps you don’t want your work colleagues to know where you frequent outside of work – or the opposite, you don’t want to bore friends with work-related check-ins.

Here’s a guide of what to do:

1. Edit your friends

First of all we need to visit the edit friends page.

2. Create a list

On the edit friends page you need to click on the + Create a list button. This will bring up a box where you can enter a name for your list (I’ve used “You can see me” – but feel free to choose your own!) and then select the friends you want to add to your new list.

Select all of the friends who you want to be able to see when you check-in with Facebook Places. Obviously, make sure anyone you don’t want to see your location isn’t selected.

3. Privacy settings

Now we need to navigate our way to the Privacy settings page. On that page find and click on the link that says Customise settings. We’re going to alter a couple of things here, but whilst you’re here I’d recommend you give all of your sharing settings a check and make sure you’re not sharing more than you want to.

4. Turn off “People here now”

Amongst the things I share collection of settings you’ll find one called Include me in ‘People here now’ after I check in. Uncheck this box.

Leaving this box ticked means that anyone who happens to be checked in at the same location as you will be able to see that you are there – even if they aren’t friends with you and irrespective of any other privacy settings.

5. Custom settings for Places I check in to

Click on the little drop down to the right of Places I check in to. In the drop down list find and click on Custom. This will open a Custom privacy settings box.

In the drop down to the right of These people select Specific people. In the box that has appeared directly below, type the name of the list you create earlier. In my case that’s You can see me. Then Save setting.

Job done!

Now the only people who can see where you have checked in to are the people on your “You can see me” list.

No matter what your reasons are, by following the method above and controlling privacy settings using lists, you can easily and simply manage who sees your Facebook location based activities via the Edit friends page.

Adding new friends

Remember when you get a new friend on Facebook that you need to add them to the You can see me list if you want them to see your check-ins. This is easily done at the time you add someone, but can also be done from the edit friends page.

The future

Hopefully at some point Facebook will add the ability to customise the privacy setting on the fly – like they do with status updates via the web site. But I wouldn’t get your hopes up too high.

Update: 20110831

Did you hold your breath? Facebook have update their permissions handling again. As part of those changes they’ve altered how you check-in to places. You can now select a location for each update – pretty much what I described in the future paragraph above.

It’s still a good idea to have a “you can see me” group as I’ve described above, but rather than give that group specific permissions you would now choose that group directly from the status update box before you post.

1 of 5
12345
Reload this page with responsive web design DISABLED