-
Notifications
You must be signed in to change notification settings - Fork 235
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
Massive Code Cleanup - pt3 (bookmarks and added TODOs) #462
Conversation
@Minuga-RC, I've added a TODO just for you |
This comment was marked as outdated.
This comment was marked as outdated.
Hmm, it started getting better! Thanks for a good job, @ZiClaud! As modules are used, now there is a place to use Webpack or a similar tool to create a single optimized script and stylesheet from all the separate modules. Could you look for it or add it to TODOs? |
ok idk its becs weather of @ZiClaud sometimes things doesnt seeems to load very well in vite maybe becs of too many js scripts |
Look who's here after these days... |
Lol finally got some motivation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflicts
Could it be that I created too many
I'll try to look into it, if we're lucky it might fix the problem mentioned above |
I don't have such issues most of the time.. there were some, translation function was causing some unwanted things but after adding setTimeout, it's almost none |
How much did you increase the number of event listeners? It could be a problem, but it's pretty highly limited so that you can add many listeners without a problem. There is a solution, of course—you aggregate multiple event listeners into one, where you decide what to do based on target, etc. So, you have, e.g., one Another common problem could be registering the same event listener multiple times. It could be due to updating DOM for fetched data, where you don't properly deallocate the old structures (event listeners targeting old data) and just add event listeners for new data. In general, this problem could be in code, where you generate DOM from data and use I don't have time for more than these words, so I hope they'll help you. |
couldn't draft PR so had to edit it :( |
update change
Resolved conflicts |
📝 Description
Cleaned code for Bookmarks - Needs testing, I can't do it
Added many TODOs at the start of
script.js
, with the stuff that still needs to be done (will need help to do all of those)📸 Screenshots / 📹 Videos
N/A
🔗 Related Issues
✅ Checklist