Code Monkey home page Code Monkey logo

Comments (3)

vfxturjo avatar vfxturjo commented on June 2, 2024

hi. update:
I found that commenting out this line solves the problem.

image

and by analysing, i found:
image

when i click on refresh button which does JZZ().refresh() method, the <div id="jazz-midi-msg">...</div> updates. also, DOM node count increases by 3.

if i remove the event listener...
image

then on each run of JZZ().refresh() method, one line is added: (i clicked 5 times)
image

so, i think JZZ().refresh() method is keeping history of all times when refresh() method is called. maybe to compare the current value with previous one to see if there is any difference? (just my thought), but it uses memory and DOM.
is this intentional? or is this a bug?

from jzz.

jazz-soft avatar jazz-soft commented on June 2, 2024

This DIV is used to communicate with the Jazz-MIDI browser extension.
The event listener reads it and then cleans it up.
I don't understand what you are trying to accomplish by removing the event listener.

from jzz.

vfxturjo avatar vfxturjo commented on June 2, 2024

I see... I removed the event listener just to try to understand what it does.

Mainly my problem is with DOM nodes count. I mean, even if i didn't remove the event listener, the count was increasing gradually.

Mainly if i use JZZ().refresh() method.
(+3 DOM nodes per call)
Or if i subscribe to onChange() method...
(+3 or +6 DOM nodes per second)

I was trying to understand if this is normal or not... that constant increase of DOM nodes count

from jzz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.