Dojo Dijit and HTML5 in Real world applications/HTML5/Declarative VS. Programmatic dijit vidget

From PMISwiki
< Dojo Dijit and HTML5 in Real world applications‎ | HTML5
Revision as of 18:55, 22 September 2011 by WikiSysop (talk | contribs) (Created page with "==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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

In short: Simple thing, feel free to declare the widgets directly in the HTML. For more complex solutions program it in the JavaScript section of the document.

This is a stub - more to come..