While large sites focus on content delivery networks and loading up on big iron to more quickly process requests, small web site operators that intelligently approach the problem can compete with large web site operators by making small optimizations.
What is the size of the opportunity with these changes? 20-25% reduction in response time. That reduction in effort also reduces the load on web and application servers, allowing them to focus on serving the dynamic elements of your site. Before pursuing advanced capabilities, consider whether reducing 25% of your load is worth the effort.
Before you optimize a site, it’s important to understand how a web request works. When a user requests a web page, it appears as if they’re connected directly to the web server. In reality, the request kicks of a chain of events.
This is a simplified sample request:
User/browser
User’s Internet Service Provider
Content owner’s ISP
Hosting environment
Router/firewall
Load balancer
Web server
Application server
Database server
The information is then returned back along the same path. Within each step may be multiple steps, such as multiple hops at an ISP.
For any simple web page that is requested, there may be dozens or hundreds of individual requests for images, style sheets, javascript files, HTML and media.
Basic Optimization Steps
There are several basic steps that can be taken to improve performance of web sites. The main groupings of performance are:
Minimize requests. Reducing the number of unique hostnames required, cache files on the browser, combine files. Any requests that are avoided is performance gained.
Minimize the size of information being transferred. HTTP or GZIP compression works by compressing text prior to transferring from the web server to the browser, then decompressing it at the browser. The recent advances in browser technology ensures widespread support for this. An average page on robsaker.com saves 150k in transfer per page by enabling compression. Text (pages, javascript, CSS) compresses tightly, meaning the amount of bandwidth being transferred is significantly decreased, benefiting users with slower connections, undersized servers, or web sites that are many hops away from users. In addition to server compression, minification of code (removing unneeded white space characters) improves response time performance regardless of browser/server capabilities.
Externalizing files. Placing javascript and CSS in external .js and .css files allows for caching, both on caching networks and browsers. This reduces the distance between the user and content, and can shave seconds off an individual page load time.
Eliminate errors. Browsers have historically been lax in enforcing coding standards. The result? They’ll try to solve for all types of problems in code. Eliminating errors improves the user experience, decreases time spent by servers or browsers trying to “solve” problems, and is favorable in search engine calculations.
This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.
373One Responsehttp://www.robsaker.com/2010/01/06/basic-optimization-of-web-site-performance/Basic+Optimization+of+Web+Site+Performance2010-01-06+21%3A41%3A07Rob to “Basic Optimization of Web Site Performance”
Information is essential in generating good insights, but it cannot be a crutch in making decisions. The posts here are intended to explore and are not perfect, but that's part of the point.
Business marketers have long been wary about the reliability of the names and contact information they buy from suppliers known as compilers. Is the phone numbe...
Conventional economic models failed to foresee the financial crisis. Could agent-based modelling do better?MAINSTREAM economics has always had its dissidents. B...
Earlier this week I enjoyed listening to Bruce MacGregor, Managing Partner of design giant IDEO, at the Sustainable Brands Conference in Monterey, CA.
His talk...
To my left-liberal Democrat friends:
As you engage in intellectual dishonesty using Rand Paul’s silly
comments on the 1964 Civil Rights Act to misrepresen...
Coke and Pepsi are very active in social media, and I think their hard work is helping to build up a bank of trust with their audiences.
As has been widely rep...
So said 7-Eleven chief Joe DePinto to Bloomberg two years ago, when he made the prediction that 7-Eleven's share of private label in his stores would expand fro...
Household-goods makers like PG, Colgate-Palmolive, Kimberly-Clark and Clorox are cranking up their advertising, hoping to coax people to spend amid signs of an...
JetBlue and WestJet switched to the same reservations systems. One transition was bumpier than the other and a reminder of how the implementation of new technol...
Web Optimization Trends in 2010 | Rob Saker's Blog
January 6th, 2010 at 5:52 pm
[...] jumping into the expected developments in 2010, there are numerous small steps that can be taken to improve performance of web [...]