Hi folks,
I'm looking for an opinion...hopefully one based on experience. In a nutshell, we're trying to decide the best way to display the contents of a DCR in a component. Typically this would be a slam dunk using the out of the box DCR datum functionality. However, it was hypothesized that performance would be better if we displayed an HTML fragment instead of consuming a DCR.
That said, here are the two approaches:
- Generate & publish an HTML fragment (generated from a DCR). The component displays the fragment via AJAX (There's an out of the box component that does this called "Embed HTML with AJAX").
- Rely on a DCR datum and consume the DCR's contents via XSLT.
As stated earlier, the main reason we are considering #1 is for performance considerations.
Are there any compelling reasons NOT to go with approach #1?
Thanks in advance,
-Dan