I am having an application where there are alot of divs with elements inside them are created dynamically on javascript events . so I am wondering which is better for performance and maintenance ?? to create those divs in javascript and insert them to the html or to get them from wcf restful service and insert them in html ??
Share
Using JavaScript is much easier for maintenance especially if you use it with other libraries like jQuery. Performance doesn’t matter unless there are at least thousands of divs.