Comments (3)
hi. update:
I found that commenting out this line solves the problem.
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...
then on each run of JZZ().refresh()
method, one line is added: (i clicked 5 times)
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.
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.
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)
- Sending synchronized midi clock to midi port HOT 2
- Prevent hanging notes when switching ports in the middle of playback HOT 2
- Using web worker to keep playing when window is not focused HOT 4
- Fails to detect nodeJS environment in the electron main process when using TypeScript and Webpack HOT 7
- JZZ().info().outputs returns empty list on macOS 13 Ventura ? HOT 13
- Query HOT 3
- Using plugins with ES6 import syntax? HOT 4
- Fatal error! BSOD if trying to send midi message to a closed port HOT 10
- How to uninstall Jazz-Plugin? HOT 2
- Webview ios? HOT 5
- Trying to connect to a MIDI keyboard HOT 25
- Nuxt 3 (with Vite) issue on building static site: Cannot call a namespace ('JZZ')
- Broadcast Midi In/Out HOT 5
- No SysEx on one computer, works on others HOT 8
- To add Bluetooth MIDI support. HOT 2
- add React support HOT 3
- Jzz not working when packaged in Electron HOT 12
- [Demo Request] Sample Based Virtual Instrument HOT 1
- [Feature Request] note number to key: 60 => C4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jzz.