Do you use vanilla JS at work mate? It's great that this channel is all about it. I just haven't seen any jobs out there that don't require React, Webpack ect. Every time I go to learn React I get discouraged by the initial setup, synthetic events and the performance is shocking compared to just basic DOM methods. With web components now a thing I just cant be bothered. I'm all over the advanced JS (streams, SW's, iterators, generators, web components ect) but would rather learn WebGPU from scratch than React...
If the listener is attached to the element you removed it will be gone. You can inspect active listeners in devtools on any element. If you attach your listener to a parent element and catch the event as it bubbles up it won't be removed and you have to remember to do it your self.
Please I will be glad if you can help me solve this. A click event is called on a button and when this us done, a div gets content appended into it as child elements but then I need to create an event listener on the children as such I tried using DomcontentLoaded but it doesn't seem to work. The only method that works is setTimeOut but that method isn't reliable. Is there another way to fix this?
very nice, your channel is really underrated
Do you use vanilla JS at work mate?
It's great that this channel is all about it. I just haven't seen any jobs out there that don't require React, Webpack ect.
Every time I go to learn React I get discouraged by the initial setup, synthetic events and the performance is shocking compared to just basic DOM methods.
With web components now a thing I just cant be bothered. I'm all over the advanced JS (streams, SW's, iterators, generators, web components ect) but would rather learn WebGPU from scratch than React...
Man thanks
The remove method helped me alot
You're welcome 🙂
THANK YOU !
Thanks for sharing.
You're welcome glad I could help
0:49 can we increase scroll timing?
Awesome!
Question: When you remove element (eg. button) are event listeners removed as well ?
If the listener is attached to the element you removed it will be gone. You can inspect active listeners in devtools on any element. If you attach your listener to a parent element and catch the event as it bubbles up it won't be removed and you have to remember to do it your self.
Please I will be glad if you can help me solve this.
A click event is called on a button and when this us done, a div gets content appended into it as child elements but then I need to create an event listener on the children as such I tried using DomcontentLoaded but it doesn't seem to work. The only method that works is setTimeOut but that method isn't reliable. Is there another way to fix this?
I need a method that can wait for all the children to be appended before the click event can be added
js or vanilla js?
What theme are you using?
Sir start react js projects
❤️
🙏🙏🙏👌👌👌👌🖖🖖🖖🖖🖖🖖
😁😁