官术网_书友最值得收藏!

HTML5 mobile web application design guidelines

Developing applications for mobile devices is quite different from developing websites for desktops and laptops. There are a wide range of mobile devices available with varying screen sizes and processing powers. Mobile devices access the Internet with varying bandwidth; they can be connected to a Wi-Fi network and in an instant they can go to a slow 2G network. All these factors make mobile applications development different from traditional web applications development.

Here are some guidelines which will help developers while building a mobile web application:

  • Animations with CSS3 rather than with jQuery: Whenever possible use CSS3 animations as they are handled in the browser natively so that it can make use of the hardware resources thus increasing the performance.
  • Responsive design using CSS3 media queries: Mobile devices these days have varying screen sizes and it's a basic expectation that a mobile web app will fit on the screen of the device requesting the application. Responsive designs using CSS3 media queries help the same code base provide an optimal viewing experience on a wide range of devices.
  • Use CSS3 gradients instead of images: Using CSS3, we can provide gradients in your web page without using specifically cut images. This helps to preserve bandwidth by not having images travelling over the wire and provides more flexibility on the page design.
  • Go for SPA (Single Page Application): SPA (for example, Gmail) provides a quicker and responsive navigational experience to the user. They are distinguished by their ability to redraw any part of the UI without requiring a server roundtrip to retrieve a page. While building mobile applications, go for SPA if it does not complicate your development process. Kendo UI Mobile is an excellent framework to build single page applications as you will see in the future chapters.
  • Make full use of offline mode and local data storage: Almost all modern mobile browsers these days support quite a lot of the HTML5 specification, as their update frequency is very high as compared to their desktop counterparts. Although we can safely assume that these features will be available on the mobile browsers, it's a good idea to check whether these features are enabled on the client browser using simple JavaScript conditional statements.
主站蜘蛛池模板: 永福县| 阳曲县| 景东| 荔波县| 德化县| 麦盖提县| 彭山县| 临安市| 清水县| 邯郸县| 乳山市| 馆陶县| 白山市| 从江县| 广平县| 蒙城县| 左权县| 红安县| 波密县| 图木舒克市| 金塔县| 左云县| 宝山区| 蓬莱市| 陆河县| 呼玛县| 双鸭山市| 日照市| 望江县| 大洼县| 蒙阴县| 通河县| 海兴县| 桃园县| 桑植县| 邵武市| 镇原县| 峡江县| 富锦市| 达日县| 大名县|