Compare Revisions

Performance best practices in extensions

Revision 371667:

Revision 371667 by lahabana on

Revision 436193:

Revision 436193 by mhenry07 on

Title:
Performance best practices in extensions
Performance best practices in extensions
Slug:
Extensions/Performance_best_practices_in_extensions
Extensions/Performance_best_practices_in_extensions
Tags:
"NeedsExample","NeedsContent","Performance","Extensions","Add-ons","NeedsTechnicalReview","Best practices"
"NeedsExample","NeedsContent","Best practices","Performance","Extensions","Add-ons","NeedsTechnicalReview"
Content:

Revision 371667
Revision 436193
t80      Adding DOM mutation listeners to a document disables most Dt80      Adding DOM mutation listeners to a document disables most D
>OM modification optimizations and <a class="external" href="http:>OM modification optimizations and <a class="external" href="http:
>//groups.google.com/group/mozilla.dev.platform/browse_thread/thre>//groups.google.com/group/mozilla.dev.platform/browse_thread/thre
>ad/2f42f1d75bb906fb?pli=1">profoundly degrades the performance</a>ad/2f42f1d75bb906fb?pli=1">profoundly degrades the performance</a
>> of further DOM modifications to that document. Moreover, removi>> of further DOM modifications to that document. Moreover, removi
>ng the listeners does not reverse the damage. For the reason, the>ng the listeners does not reverse the damage. For these reasons, 
> following events should be avoided wherever possible: <code>DOMA>the following events should be avoided wherever possible: <code>D
>ttrModified</code>, <code>DOMAttributeNameChanged</code>, <code>D>OMAttrModified</code>, <code>DOMAttributeNameChanged</code>, <cod
>OMCharacterDataModified</code>, <code>DOMElementNameChanged</code>e>DOMCharacterDataModified</code>, <code>DOMElementNameChanged</c
>>, <code>DOMNodeInserted</code>, <code>DOMNodeInsertedIntoDocumen>ode>, <code>DOMNodeInserted</code>, <code>DOMNodeInsertedIntoDocu
>t</code>, <code>DOMNodeRemoved</code>, <code>DOMNodeRemovedFromDo>ment</code>, <code>DOMNodeRemoved</code>, <code>DOMNodeRemovedFro
>cument</code>, <code>DOMSubtreeModified</code>>mDocument</code>, <code>DOMSubtreeModified</code>
81    </p>
82    <p>81    </p>
83      For more on these events and their deprecation, see <a href82    <p>
>="en/DOM/Mutation%20events" title="en/DOM/Mutation events">Mutati 
>on events</a>. 
83      For more on these events and their deprecation, see <a href
 >="/en-US/docs/Web/Guide/DOM/Events/Mutation_events" title="/en-US
 >/docs/Web/Guide/DOM/Events/Mutation_events">Mutation events</a>.&
 >nbsp;<span style="line-height: 1.572;">Use&nbsp;</span><a href="/
 >en-US/docs/Web/API/MutationObserver" style="line-height: 1.572;" 
 >title="/en-US/docs/Web/API/MutationObserver">Mutation Observers</
 >a><span style="line-height: 1.572;">&nbsp;instead if possible.</s
 >pan>

Back to History