You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 2, 2025. It is now read-only.
<h1>Why mutation observers are better than mutation events</h1>
<nav><a href="http://dev.opera.com/articles/view/mutation-observers-tutorial/">Return to article</a></nav>
</header>
<article>
<p>In this example, we are creating 2500 paragraphs, and appending them to a document fragment. Then we'll append that document fragment to a <code>div</code> element. Rather than listen for <a href="mutationobserver-mutationevent.html">mutation events</a>, we'll use a mutation observer.</p>
<p>Our mutation observer callback function was invoked <b class="numevents">0</b> time(s). </p>