Load time improvements

Load time matters

Imagine waiting 18 seconds for a page to load (on a high-speed connection) — not just the home page, but any inside page of a website.  Pretty frustrating, right?  Having bad load times makes a huge difference to your customers.  I helped a new client reduce page load time from 19 seconds to 3 seconds.

A case study for load time

I am the new webmaster for a website, and it was having some issues: it was taking far too long to load the page.

Crazy slow load time

Severely slow load time

I looked at the code, and identified many issues with performance, including placement of Javascript files, linking to a CSS file that didn’t exist, and including Amazon link enhancer code that only was needed for one page of the site, but had been included on every page.

Just over one hour later, I was able to reduce the load time considerably:

Lower load time

Much lower load time

Is your website loading slowly?

I can recommend changes to your site. Let me know if you need help. Also, you can learn more about how to improve your load speed from Yahoo!

By Zack Katz

Zack Katz is the founder of GravityKit and TrustedLogin. He lives in Leverett, Massachusetts with his wife Juniper.

3 replies on “Load time improvements”

Amazon Link Enhance Code – in Thesis,where does this code get placed only once instead of placing it on every page you post?
<script type=”text/javascript” src=”″>
<img src=”″ alt=”” />
It works in my sidebar widget, but not on my post page unless I add the above code.
Any ideas?
Thanks, Susan

Hi Susan,
If you want to show the code only on specific pages, you need to add some code to the Thesis theme’s `custom` folder. There, you will add this to the custom_functions.php file:

add_action('wp_head', 'add_amazon_lec');
function add_amazon_lec() {
// Change the number inside is_page() to the page ID of the targeted page
// Or use is_post() if it's a post, not a page
if(is_page(5)) {
echo '<script type="text/javascript" src="">
<img src="" alt="" />

Let me know if this doesn’t work, but it should.

Thanks Zack for taking the time to write all this code out.
I want to have this functionality on all pages/post that I have an Amazon book on so the code in the php file would be for every post and page. Which part of the above code should I copy and paste.?

Comments are closed.