I am currently working on a comment feature. There can be many comments > 100. Each comment has several functions (Delete, Edit, Flag) that the user can click on. If I assume there are 100 comments with three 3 functions. There are 300 event listeners that I have initialised.
Problem Now I wonder if this has a negative impact on the performance of the browser? I suppose so.
Question Is there a more performance approach that can be used? A pattern that was designed for exactly such cases?
Aucun commentaire:
Enregistrer un commentaire