K2 Optimized

Since I began my journey to SEO, I’ve learned many things such as keyword optimisation, use of <h1> tags and much more. One important aspect of SEO is having optimized page, and since I’m trying to promote my blog, I had to look at this point.

With a quick test, I realised that K2 template wasn’t optimized to give a fast result, giving many spaces between codes which makes the file size bigger.

Let’s take this for example:
I went to my Be different post, saved the page using the save as option included in any browser. I opened the page using notepad and looked for empty spaces.

File size at the beginning (no edit): 20.05 KB
File size after empty space removal (edit) : 19.85 KB
File size after Google Anaylitics removal (edit) 19.63 KB

This is 0.30 KB, not big but makes a difference for slow bandwidth users. Also, take into consideration I started with a 20.05 KB page.
0.30 KB over 20.05 equals 1.5% of “used bandwidth for code”. Make that go on a 500 KB page and you get 7.5 KB. I know that’s small gain, but it’s only one step closer to a smaller file size.

I want my pages to load in less than 2 seconds.

Then I checked at the content in my folder related to this internet file.
I had Google Analytics in my source code so I could get statistics about the users, but the file is 17.6 KB. I decided to remove this part of my code since Google Analytics wasn’t providing me the kind of statistics I was looking for (even though they are good, but I want public stats).

So far, I’ve been able to save 17.9 KB from only two modification (one that you might not be able to do though).

[NOTE] Not to my surprise, by removing both LiveSearch and AJAX comments in the K2 option panel, my speed improved greatly. LiveSearch wasn’t that important but AJAX commenting was a nice feature, but not worth the speed improvement I get from removing it.

I also started using CSS Compress. Can’t really tell how much it is efficent though.

0 Responses to “K2 Optimized”


  1. No Comments

Leave a Reply