Wednesday 22 June 2016

10 Ways to Speed Up Your Website – and Improve Conversion by 7%

Think the speed of your website doesn’t matter?
Think again.
A 1-second delay in page load time yields:
  • 11% fewer page views
  • 16% decrease in customer satisfaction
  • 7% loss in conversions (source: Aberdeen Group)
Amazon found this to be true, reporting increased revenue of 1% for every 100 milliseconds improvement to their site speed. (source: Amazon)
So did Walmart, who found a 2% increase in conversions for every 1 second of improvement.
That’s not all. A study by Akamai found that:
  • 47% of people expect a web page to load in two seconds or less.
  • 40% will abandon a web page if it takes more than three seconds to load.
  • 52% of online shoppers say quick page loads are important for their loyalty to a site.
But the average website load speed has increased 22% this year, according to a report by Radware.
It now takes 7.72 seconds to load—a far cry from the two-second limit of your average user.
Clearly, speeding up your website is critical—not just to ranking well with Google, but to keep your bottom-line profits high. So today, I’m going in-depth, sharing 10 things you can do to shave seconds off your site speed and enjoy higher profits to boot.

10 things you can do to speed up your site

1. Minimize HTTP Requests

According to Yahoo, 80% of a Web page’s load time is spent downloading the different pieces-parts of the page: images, stylesheets, scripts, Flash, etc. An HTTP request is made for each one of these elements, so the more on-page components, the longer it takes for the page to render.
That being the case, the quickest way to improve site speed is to simplify your design.
  • Streamline the number of elements on your page.
  • Use CSS instead of images whenever possible.
  • Combine multiple style sheets into one.
  • Reduce scripts and put them at the bottom of the page.
Always remember, when it comes to your website, leaner is better.
Pro Tip: Start a campaign to reduce the number of components on each page. By doing this, you reduce the number of HTTP requests needed to make the page render—and you’ll significantly improve site performance.

2. Reduce server response time

Your target is a server response time of less than 200ms (milliseconds). And if you follow the tips in this article, you’re well on your way to achieving this.
Google recommends using a web application monitoring solution and checking for bottlenecks in performance.
Pro Tip: Read this report by Singlehop, Critical Ecommerce Infrastructure Needs, to learn nine things you need to focus on to keep your site performing well.
Then tap into these resources:
  • Yslow – to evaluate your site’s speed and get tips on how to improve performance.
  • Google’s PageSpeed Tools – to learn more about performance best-practice and automate the process.

3. Enable compression

Large pages (which is what you could have if you’re creating high-quality content) are often 100kb and more. As a result, they’re bulky and slow to download. The best way to speed their load time is to zip them—a technique called compression.
Compression reduces the bandwidth of your pages, thereby reducing HTTP response. You do this with a tool called Gzip.
Most web servers can compress files in Gzip format before sending them for download, either by calling a third-party module or using built-in routines. According to Yahoo, this can reduce download time by about 70%.
And since 90% of today’s Internet traffic travels through browsers that support Gzip, it’s a great option for speeding up your site.
Pro Tip: Read this article for more details on Gzip compression. Then set up your server to enable compression:

4. Enable browser caching

When you visit a website, the elements on the page you visit are stored on your hard drive in a cache, or temporary storage, so the next time you visit the site, your browser can load the page without having to send another HTTP request to the server.
Here’s how Tenni Theurer, formerly of Yahoo, explains it…
The first time someone comes to your website, they have to download the HTML document, stylesheets, javascript files and images before being able to use your page. That may be as many as 30 components and 2.4 seconds.
load time 1
Once the page has been loaded and the different components stored in the user’s cache, only a few components needs to be downloaded for subsequent visits.
In Theurer’s test, that was just three components and .9 seconds, which shaved nearly 2 seconds off the load time.
load time 2
Theurer says that 40-60% of daily visitors to your site come in with an empty cache, so it’s critical that you make your page fast for these first-time visitors. But you also need to enable caching to shave time off subsequent visits.
Pro Tip: Read this article to learn four methods for enabling caching.
Static resources should have a cache lifetime of at least a week. For third-party resources like ads or widgets, they should have a cache lifetime of at least one day.
For all cacheable resources (JS and CSS files, image files, media files, PDFs, etc.), set Expires to a minimum of one week, and preferably up to one year in the future. Don’t set it to more than one year in the future because that violates the RFC guidelines.

5. Minify Resources

WYSIWYG resources make it easy to build a Web page, but they sometimes create messy code—and that can slow your website considerably.
Since every unnecessary piece of code adds to the size of your page, it’s important that you eliminate extra spaces, line breaks, and indentation in your code so your pages are as lean as possible.
It also helps to minify your code. Here’s Google’s recommendation:
  • To minify HTML, you can use PageSpeed Insights Chrome Extension to generate an optimized version of your HTML code. Run the analysis against your HTML page and browse to the ‘Minify HTML’ rule. Click on ‘See optimized content’ to get the optimized HTML code.
  • To minify CSS, you can try YUI Compressor and cssmin.js.
  • To minify JavaScript, try the Closure CompilerJSMin or the YUI Compressor. You can create a build process that uses these tools to minify and rename the development files and save them to a production directory.

6. Optimize images

With images, you need to focus on three things: size, format and the src attribute.
Image size
Oversized images take longer to load, so it’s important that you keep your images as small as possible. Use image editing tools to:
  • Crop your images to the correct size. For instance, if your page is 570px wide, resize the image to that width. Don’t just upload a 2000px-wide image and set the width parameter (width=”570”). This slows your page load time and creates a bad user experience.
  • Reduce color depth to the lowest acceptable level.
  • Remove image comments.
Image format
  • JPEG is your best option.
  • PNG is also good, though older browsers may not fully support it.
  • GIFs should only be used for small or simple graphics (less than 10×10 pixels, or a color palette of 3 or fewer colors) and for animated images.
  • Do not use BMPs or TIFFs.
Src attribute
Once you’ve got the size and format right, make sure the code is right too. In particular, avoid empty image src codes.
In HTML, the code for an image includes this:
<img src=””>
When there’s no source in the quotation marks, the browser makes a request to the directory of the page or to the actual page itself. This can add unnecessary traffic to your servers and even corrupt user data.
Pro Tip: Take time to re-size your images before uploading them. And always include the src attribute with a valid URL.
To ensure your images load quickly, consider adding the WP plugin to your website.

7. Optimize CSS Delivery

CSS holds the style requirements for your page. Generally, your website accesses this information in one of two ways: in an external file, which loads before your page renders, and inline, which is inserted in the HTML document itself.
The external CSS is loaded in the head of your HTML with code that looks something like this:
<!—Your styles –>
<link rel=”stylesheet” type=”text/css” media=”all” href=http://yourURL/style.css />
Inline CSS is nested in your page’s HTML and looks like this:
inline css example
In general, an external style sheet is preferable, because it reduces the size of your code and creates fewer code duplications.
Pro Tip: When setting up your styles, only use one external CSS stylesheet since additional stylesheets increase HTTP requests. Here are a two resources that can help:
Avoid including CSS in HTML code, such as divs or your headings (like the inline CSS pictured above). You get cleaner coding if you put all CSS in your external stylesheet.

8. Prioritize above-the-fold content

Having just recommended that you use only one CSS stylesheet and no inline CSS, there is one caveat you need to consider. You can improve user experience by having your above-the-fold (top of the page) load faster—even if the rest of the page takes a few seconds to load.
Pro Tip: Consider splitting your CSS into two parts: a short inline part that styles above-the-fold elements, and an external part that can be deferred.

9. Reduce the number of plugins you use on your site

Too many plugins slow your site, create security issues, and often cause crashes and other technical difficulties.
Pro Tip: Deactivate and delete any unnecessary plugins. Then weed out any plugins that slow your site speed.
Try selectively disabling plugins, then measuring server performance. This way you can identify any plugins that harm your site speed.

10. Reduce redirects

Redirects create additional HTTP requests and increase load time. So you want to keep them to a minimum.
If you’ve created a responsive website, more than likely, you have redirects in place to take mobile users from your main website to the responsive version.
Pro Tip: Google recommends these two actions to make sure a responsive redirect doesn’t slow your site:
  • Use a HTTP redirect to send users with mobile user agents directly to the mobile equivalent URL without any intermediate redirects, and
  • Include the <link rel=”alternate”> markup in your desktop pages to identify the mobile equivalent URL so Googlebot can discover your mobile pages.
Sound too technical? Don’t worry. This post by VerveSearch helps you navigate your switch to a mobile-friendly website without compromising speed.

The bottom line

Some of these tips are easy to implement, but a few are advanced tactics that can be intimidating if you aren’t technically inclined.
If that’s the case, you might want to get help. Here are a few resources I can recommend:
  • If you like digging in and doing it yourself, Google Developers has useful information that can help you improve site performance.
  • For a done-for-you solution, consider a fully managed server like SingleHop.
Now it’s your turn. Have you come up with a unique way to speed up your website? Share your tips below.

Resident Evil 7: release date, gameplay, setting, trailer - everything we know

resident evil 7 gameplay

Resident Evil 7: Biohazard - or was that Resident EVII? - is now definitely a thing, but it’s not exactly the thing we thought it would be. It’s first-person, it looks like it’ll actually be a survival horror game and the whole thing will be playable in VR - though thus far the goggle-friendly component has only been confirmed for the PS4 release. Those departures aside, it’s still a Resi game, so expect zombies that still really, really want to eat your brains.

Capcom announced the forthcoming Resi title at E3 2016 with a murky trailer and some gameplay torn straight from the game’s demo, which is currently playable now on PS4 for PlayStation Plus subscribers. Exact details about the game’s setting, story and gameplay remain scarce, but the 15-minute demo (one of those replayable ones that fans will be poring over for clues until release) seems to confirm this is Resident Evil going back to its roots. From what we’ve seen at E3 and the subsequent deluge of information that has followed, here’s everything we know about Resident Evil 7: Biohazard.

Resident Evil 7 release date

resident evil 7 gameplay
The best news of Capcom’s E3 reveal was a release date, which means you’ll be able to slowly creep around a derelict mansion and hide from zombies as soon as January 24, 2017. Alongside that release, the game will also be launching as a full VR experience for PlayStation VR, though support for other devices like the Oculus Rift and the HTC Vive have not been announced.

Resident Evil 7 gameplay

resident evil 7 gameplay
From the game’s trailer and demo you would be forgiven for thinking you were watching a reveal for one of Frictional’s Amnesia titles or the now cancelled Silent Hills game. All the key bits are there: a helpless protagonist, rummaging through a creaky abandoned building, a dim and blinking flashlight. Judging by the demo, the gameplay is certainly horror, but we’ve yet to see anything of the survival sort - its nothing like what we'd expected.
The first-person perspective is a big shift for the franchise too, and it’s bound to have a significant impact on the game. For starter’s that first-person perspective means we’re definitely going to have some jump-scares coming our way, but it might also fix some of Resi’s most persistent problems where playability, camera control and movement are concerned.
In an interview with Masachika Kawata, producer at Capcom Japan, we were told that the demo was only a “tonal preview” of the final game and that “you will definitely feel you’ve had a Resident Evil experience” after playing the final release. Here’s hoping that means guns and herbs aplenty come January.

Resident Evil 7 setting

resident evil 7 gameplay
A dilapidated plantation mansion in America’s deep south - it’s an interesting new setting for the franchise, but by far its biggest draw is the notion that players will be restricted to just that area. The likely result of that confinement is a game that’s a whole lot more concise than previous Resi titles. With a small, intricately constructed single setting we’re also hoping for subtle hidden messages littered throughout to discover while exploring the plantation.
Thematically, the deep south setting also allows for plenty of horror fun to be had, especially seeing as the crumbling mansion looks like Leatherface himself would feel right at home there. How far Capcom Japan will go into the plantation mansion’s presumed past of slavery is also still unknown.
Capcom have also confirmed on Sony’s PlayStation blog that the events of Resident Evil 7 will be taking place after those of Resident Evil 6, “a horror story is only as frightening as its setting, and Resident Evil 7 pays tribute to the franchise’s origins on this front as well. Resident Evil 7 is set after the events of Resident Evil 6, taking place in modern day and revolving around a foreboding, derelict plantation mansion in rural America. Players must explore and survive the horrors within the mysterious, sprawling estate.”

Resident Evil 7 Trailer

Capcom gave us one wonderful splicing of gameplay and cinematic footage to drool over after the E3 2016 announcement - it’s spooky, maggoty and you can watch it below.