Open zhorabay opened 1 year ago
But there are some performance issues you might want to improved. You use seperate event listener for different "submit"
trigger. One for window, the other for #book-list
Consider using event delegation for handling events on dynamically added elements. Instead of attaching event listeners to individual elements, you can attach a single event listener to a common parent element (like the book list) and then use event.target to determine the clicked element. This can lead to better performance, especially if you're adding/removing multiple book items dynamically.
Contributions, issues, and feature requests are welcome!