FoxMetrics

How to Speed Up Your Website?

If you are serious about ranking high on search engines, you should pay attention to your site’s speed. A long loading time can be very detrimental to your ranking because it stands in the way of providing a great user experience to your visitors.

But just how do you speed up your site? Here are some of the best practices.

  1. Have an expires header.
    Placing an expires header for an image or a page signals to the browser that it should store that particular file in cache. What this means is that you enable the browser to keep a copy of these pages so when a user visits your site again, it will load quicker.
  2. Use compression.
    Yahoo suggests that you should enable Gzip compression to reduce the size of HTTP response by as much as 70%. Gzip, then, lowers the page’s weight and makes your page load faster.
  3. Use HTTP Keep-Alive.
    HTTP Keep-Alive is a feature that your hosting provider can give you. It is turned off by default. It helps reduce latency and makes your page load faster on repeat requests.
  4. Employ a Content Delivery Network.
    An excellent content delivery network has several servers that are physically apart from each other. You can then host your content on these various servers. This allows you to serve up content from a server that is nearest to the user or from a server that is faster and less busy. In both cases, you can dramatically speed up your page’s loading time.
  5. Think of your mobile page too.
    If you have a separate mobile page that redirects your visitors to a different page, such as those visiting www.yourdomain.com getting redirected to m.yourdomain.com, then be sure to use a redirect that is cacheable.
  6. Tweak your content.
    Loading times are directly affected by the size of your page and the number of elements in it. So reduce these elements to get a faster loading time.

Here are some suggestions:

  • Pare down your codes.
    There are a lot of elements in your code that do nothing for your page. You can remove these elements with tools such as Will Peavey minifier, which is available at http://www.willpeavy.com/minifier. It can help you delete HTML comments, white spaces and CDATA sections and decrease the page size.
  • The same goes for your JavaScript and CSS too.
  • Optimize your images.
    Remember that JPEGs are great for photos while GIFs are perfect for low-resolution images. PNGs, on the other hand, are great for everything else. If you are not sure, there are tools that analyze image files and tell you what formats they should be in. Be sure to tell the server how to size your image. If you can use a third-party server for your images, such as Flickr or Amazon S3, it might help speed up your load times as well.
  • Remove broken links and add a favicon.
    404s slow down your page without benefit to the user, so fix broken links and images to speed up your load time. Also, browsers always look for a favicon each time it loads your page, so get one, rather than have browsers waste precious time looking for it.
  • When dealing with CSS and JavaScript, remember these simple rules:
  • Let CSS do it. If you can code something in CSS, then do it in CSS rather than have it on HTML. For example, instead of repeatedly specifying properties for your images, links and headers, let CSS handle it.
  • Do not use inline JavaScript or CSS. If you are going to include these in your HTML, then be sure to delegate it down to the bottom of the page.
  • Reduce the DOM or Document Object Model.

Other stuff:

There are other stuff that you could try to help increase your site’s loading speed.

Put slashes at the end of links.

  • If you are using cookies, then make sure that you reduce its size.
  • Avoid using redirects.
  • To ensure that a static page is cached, remove all dynamic elements in it such as ? in the URL.
  • Place a character set in your code.

There are a lot of ways which can help you speed up your website, and these are just the most important ones and ones that are sure to make your page load significantly faster. Remember, each step here might improve your loading times only by milliseconds, but these milliseconds count!

If you’re thinking of personalizing the experience of your visitors, try FoxMetrics for free and Subscribe to our Newsletter get recent updates and news.

About Us

FoxMetrics is more than just dashboards. It’s a secure business intelligence tool for your web, mobile, and 1st party data. Quickly get a complete picture of your customer’s journey, grow your business, and, maintain 100% data ownership.

Payments