Suggested BP for BP 2 : Use script for the dynamic aspects of the user interface

BP

Use script only for the dynamic aspects of the user interface. DOM 
manipulation and creation of new nodes can consume a lot of battery at 
the device side, so as much as possible create user interface elements 
using the markup language and modify (if needed) those elements using 
scripting

How to do it

When a page is first served from the server side, it should contain all 
the markup that declares and populates user interface elements (forms, 
selects, input, etc). If rich interactions are needed later then use 
scripting to mutate or modify the DOM of the page

Received on Wednesday, 27 February 2008 07:43:34 UTC