Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 3 tasks
Rupeshiya opened this issue Dec 27, 2019 · 1 comment
Open
2 of 3 tasks

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

Rupeshiya opened this issue Dec 27, 2019 · 1 comment

Comments

@Rupeshiya
Copy link

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:

  • Bug / Error
  • Idea / Feature
  • Improvement detail

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant