Another 5 MUST KNOW JavaScript DOM Methods

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 19

  • @beinyourguard
    @beinyourguard 2 роки тому +2

    very nice, your channel is really underrated

  • @cloudpuncher4615
    @cloudpuncher4615 2 роки тому +2

    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...

  • @ahmedb.r2098
    @ahmedb.r2098 2 роки тому +1

    Man thanks
    The remove method helped me alot

  • @hassaneoutouaya
    @hassaneoutouaya 2 роки тому

    THANK YOU !

  • @SirChogyal
    @SirChogyal 2 роки тому

    Thanks for sharing.

  • @pouriyanourouznejad7090
    @pouriyanourouznejad7090 2 роки тому

    0:49 can we increase scroll timing?

  • @drementer9
    @drementer9 2 роки тому

    Awesome!

  • @boobo
    @boobo 2 роки тому

    Question: When you remove element (eg. button) are event listeners removed as well ?

    • @nicolashervy7544
      @nicolashervy7544 2 роки тому +1

      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.

  • @tyscyre2256
    @tyscyre2256 2 роки тому

    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?

    • @tyscyre2256
      @tyscyre2256 2 роки тому

      I need a method that can wait for all the children to be appended before the click event can be added

  • @lev_bul
    @lev_bul 2 роки тому

    js or vanilla js?

  • @eboatwright_
    @eboatwright_ 2 роки тому

    What theme are you using?

  • @ijajulislam7223
    @ijajulislam7223 2 роки тому

    Sir start react js projects

  • @amircahyadi9219
    @amircahyadi9219 2 роки тому

    ❤️

  • @suelingsusu1339
    @suelingsusu1339 2 роки тому

    🙏🙏🙏👌👌👌👌🖖🖖🖖🖖🖖🖖