Best Practices to follow when building a page with more complex UI and lot of renderings, REST models

  • 1
  • Question
  • Updated 3 years ago
All,

Is there any best practices list which could help design complex pages with REST models, with having more than 10 models and conditional renderings , wizards kind of stuff ?
Photo of KVin

KVin

  • 1,158 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
No that I know of.


If you can break up your page with page includes to avoid it getting too large, that may be a good option, too, especially if you think you'll ever want to reuse portions of the page elsewhere.

More than 10 models is pretty common in our neck of the woods. Namespacing your models and using long descriptive model names has been helpful for me.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
People build such radically different pages that its really tough to provide best practices that are more meaningful than things like "make it load fast"  "don't try to provide too much at once"  etc... 
Photo of KVin

KVin

  • 1,158 Points 1k badge 2x thumb
Well, it make sense! when there is a chance we negotiate with business to try not to show much on tables for larger text areas or description and comments fields but only few critical info needed. 

Always, heap size issue haunting us at some point of time.