scorelab / Stackle

Stackle is an web communication portal aimed at providing Open Source organizations a platform to have discussions on their github projects and their issues. It provides Github intergration which allows adminstrator of an organization to create a forum thread for the particualr organization. Users signing in is able to view forums of the organizations they contribute to and engage in the forum discussions.
Apache License 2.0
104 stars 146 forks source link

Refactor the client side code to minimise the DOM manipulation #181

Open Rupeshiya opened 4 years ago

Rupeshiya commented 4 years ago

Before you describe your issue, idea or feature, please consider using this issue template.

Refactor the client side code to minimise the DOM manipulation

Type of issue:

Short description on the issue

Refactor the client-side code to minimize the DOM manipulation, because Angular can’t keep track of items in the collection and has no knowledge of which items have been removed or added. As a result, Angular needs to remove all the DOM elements that associated with the data and create them again. That means a lot of DOM manipulations especially in a case of a big collection, and as we know, DOM manipulations are expensive.

Possible fix

Track the changes and update the DOM instead of re-creating again.

Rupeshiya commented 4 years ago

@psnmissaka @tharindupr Please review the issue and let me know your thoughts.