Solid Internet backbone status and performance both start with a well designed mobile website. While this can be difficult given that consumers have come to expect instant responsiveness with lower throughput, the savvy developer should still make every attempt to optimize mobile pages to load in just two seconds. Here’s how you can build a mobile website for the best user experience possible.
Hook, Line, and Sinker
To get and keep your customer’s attention, all immediately visible or above the fold content of the critical rendering path must display and be functional right away. To render a useful page quickly, focus on speeding up the delivery of:
- Base HTML
- Third party tags.
In order to accelerate delivery of above and below the fold content, developers must be ready to tackle six different technological aspects: overall architecture, render times, page size, latency, and return visitor experience.
Consider Overall Architecture
While every page follows the same series of steps when loading, for improvement and acceleration at every turn. The best way to build your website is to keep domains to a minimum. Use no more than two domains per page wherever possible to reduce the required number of DNS lookups. It’s also a good idea to enable HTTP Keep Alive in all scenarios.
Speed Up Initial Render
Reduce Additional Render Times
Minimalize Page Size
Requests are generally more important than page size, but it’s no secret that an overloaded page correlates to poor performance. Avoid this by limiting overall page size to 200KB or 400KB if your site is mobile-optimized. Keep images to 10KB each.
One of a designer’s top priorities should be to reduce the number of round trips necessary per page. On a basic 3G network, latency can be as many as 10 times worse than on a wired network connection. Responses and DNS lookups that take 30ms on a wired connection could take 300ms or longer via 3G. Avoid these latencies by using redirections, images, HTTP requests, and content delivery networks.
Improve Return Visitor Experience
Managing cache is a great way to reduce round trips and delays for return visitors. You can tune your caching by using far future Expires headers, removing ETags, and limiting the use of “no cache” headers. Other options include using offline storage for cache and local storage instead of cookies.
These are just some of the best ways designers can build fast, effective, mobile optimized web pages.