ASafaeirad – Telegram
ASafaeirad
437 subscribers
188 photos
13 videos
2 files
264 links
My personal works, which I hope you like. contact @S_Kill
Download Telegram
TIL:
You can listen for attribute changes on a DOM element using a MutationObserver.
In my case, I needed to inspect a DOM element during a transient state that changed too quickly to catch manually.
Using DOM breakpoints wasn't helpful since the element was updated too frequently.
The solution was to use a MutationObserver to trigger specifically when a certain attribute changed.


const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (
mutation.type === "attributes" &&
mutation.attributeName === "my-attribute") {
debugger;
}
});
});

observer.observe(element, { attributes: true });


#til
7👍3🔥1🤯1
4🔥1🎉1
Zoo.js
An overview of 127 JavaScript engines.

https://zoo.js.org/

#javanoscript #engine
5👍2🎉1
Mediabunny
A JavaScript library for reading, writing, and converting video and audio files. Directly in the browser, and faster than anybunny else.

#tool #video
🔥51
With 2025 almost over, I’m handing out my personal awards.
The most ridiculous software decision of the year goes to...
.
.
.
Canonical 🎉
For adopting the Rust rewrite of Coreutils and bringing a toy project to the critical part of the GNU/Linux ecosystem.

#linux #rust #gnu #coreutils
3🎉1