The Greatest Story Never Told: Web Page Optimization

It’s amazing how the web has transformed the way we do business.  Today companies have extended their reach and found opportunities on the web never thought possible.  This article is one of a series that aims to help web leaders focus on specific strategies to optimize web delivery – of content, theory, design or implementation.

I love stories about the history of web sites.  My favorites are the ones started in basements and dorm rooms with only a vision and a dream to guide them.  Just a small group, or maybe one person, with a single goal to put something out there for the masses.  Something new and creative, something that someday no one will forget or be able to live without.  These are your facebooks and tumblrs, and countless other internet entrepreneurs that have branded the web landscape.

There are plenty of business eCommerce examples of this sort of web legacy too.  I’ve heard a number of ‘my nephew created the site for free’ and ‘it started as a free portal and grew from there’ stories.  I think that’s great, it shows the flexibility of the medium.  There are a lot of ways to put your site out there and get good results.

What your nephew maybe didn’t tell you is that there are ways to do it better.  Guidelines that when followed, will make big differences in how effectively your page is delivered.  Does your web site have that “white flash” between every click of a page link? When your pages do start showing up, do the images shift and the fonts resize?  Does the page continue to load even though you think it should be done?  Here are some tips that can improve your page performance:

  • Styles at the top.  For maximum display quality and consistent appearance, that’s the way it should be.  All CSS or page styling should live in the “head” section of the html.  That means the browser can get the styling rules straight before the “body” renders the page.  No twitching or shaking as new style rules are introduced.
  • Scripts at the bottom.  When there is JavaScript content in the “head” section, the browser needs to make sense of it before it starts rendering the display.  This causes lag, or what’s referred to as “latency”.  When we put scripts just before the closing of the “body” tag, we ensure the page is loaded (for all intents) before the browser starts in on any script processing.  Your page loads faster, at least in the users’ eyes.  That’s what counts, don’t you think?
  • Reduce stuff on your page.  To all degrees.  Reduce the number of http requests your page makes by merging .css and .js files into as few as possible.  Make script and CSS references smaller by minifying them, or using the minified version.  Use a content delivery network for commonly used libraries that you shouldn’t be using your bandwidth to get (like jQuery or Google Analytics).
  • Use some tools.  Open the developer tools on your web browser to see what’s happening.  Question all the http requests. See what loads last and why.  Use a validator to see if your markup is everything it should be.
  • Get rid of 404 errors.  Not only is the content you’re trying to show not there, the server is taking extra time to point that out to you!
  • Think about simplifying.  Do you have an excessive amount of form elements on the page?  Are you using iframes and a lot of images?  Is the interface as clean and simple as you would like?  Maybe it’s time to rethink with a standards-based responsive design?

Your web site started from humble beginnings, that’s a great story.  But what should the sequel be?  HTML is the language of the web, so communicate effectively.  I’m pretty sure your nephew would agree.

Tagged with: , , , , ,
Posted in Web Development

A Fluid Response to Modern Web Browsing

It’s amazing how the web has transformed the way we do business.  Today companies have extended their reach and found opportunities on the web never thought possible.  This article is one of a series that aims to help web leaders focus on specific strategies to optimize web delivery – of content, theory, design or implementation.

The pace of modern web development is relentless and ever increasing.  The devices used to access your content are constantly changing.  How do you ensure that your customers are getting the best experience on any device they use?

Enter responsive design techniques, pages that detect how much real estate they have and adjust accordingly.  It’s done with a combination of page formatting (CSS) and scripting (JavaScript) that looks at the screen width and applies either scripting, formatting or both to optimize the page display for the screen size.  Desktops, tablets and smartphones are shown the same page, but one tailored for best fit.

How does this affect your current web site?  The short answer is in every way.  Your current designs, if developed for a stellar desktop experience may need tweaking or a major overhaul.  Try resizing the browser window to a tablet or smartphone width.  If all you see is a background image and one sixteenth of your web content, that’s probably a bad sign.

Pages that shift or collapse when resized will fare better, they may have been designed to use fluid techniques.  Fluid means that the markup uses full widths and the actual content of each element to determine how screen elements are shown.  Elements are “floating” and if they exceed the available space, they shift in a [hopefully] logical way.

Fluid design is a must for a responsive website design, but controlling how the site floats and shifts for each screen size is tricky.  That’s why you need a combination of fluid and responsive to get it right.  The fluid nature of your pages will allow dynamic resizing based on the screen size and the responsive part will make sure it looks good for a variety of devices.  Fluid design will make sure it appears in the available screen area, responsive design ensures content is where it should be.

You may ask if anyone has done something to simplify this.  Perhaps created some sort of framework to allow our web content to live in a totally responsive world?  Yes, there are a number of frameworks that give you all this and more.  Twitter Bootstrap is a great web development framework that not only gives you responsive templates and ready-made tools but a great CSS and component base for all your web pages.  Foundation is another framework that will give you a head start building good looking responsive web pages.

These frameworks won’t design pages for you, unfortunately.  How you represent your ideas on each device is something you’ll have to work on.  Here are some things to keep in mind:

  • Start your design with the small screen.  Allow more or expanded display based on available screen space (“mobile first”).
  • Use best practices.  Get more familiar with html5 and check out the html5 boilerplate.
  • Keep modern and legacy environments in mind.  If your audience uses IE8, your site needs it’s full support. Choose your framework based on the support you need.
  • Give special attention to content popular on alternative devices.  Emails are often overlooked but are viewed on smart phones a lot, so optimize that experience!
  • Rethink your “mobile” website plans.  The concepts may be great, but do they offer the same service level as your regular site?  Customers are known for wanting more, so an attractive tablet website is great, but only if you can browse, order and query with the same precision as the current site.  Customers that see “coming soon” may be “leaving now”.

Using these principles, your users can get the most of whatever device they are using.  Your customers will notice and your customer service will thank you.

Tagged with: , ,
Posted in Web Development