Dojo Dijit and HTML5 in Real world applications/HTML5/Declarative VS. Programmatic dijit vidget
Declarative VS. Programmatic dijit vidget
- Programmatic widget creation is faster because the working in DOM has an overhead on searching elements that should become widgets.
- Declarative widget creation has some limitation on methods
- Declarative widget creation allows you to code simple pages faster. If your page isn't too big, the speed difference between declarative and programmatic widget creation is small.
See real life example: dijit.form.Button in Programmatic implementation and Declarative markup
This is a stub - more to come..
Tips and tricks
Synntax highlight based on html5:
IE 8, Firefox 3.6.22, Dojo 1.6.1