I am loading some comments in via ajax, default is 5 onload then the user can request more if they want.
This is more a question of good practice.
Where is the best place to build to html elements that will be displayed on the page.
Should I build them up in the javascript file then display them?
I am using Yii framework if this is any help.