Performance/Addons/BestPractices: Difference between revisions

no edit summary
No edit summary
Line 49: Line 49:


(Examples cribbed from the [[Performance/Optimizing_JavaScript_with_DTrace|DTrace page]].)
(Examples cribbed from the [[Performance/Optimizing_JavaScript_with_DTrace|DTrace page]].)
== Avoid Writing Slow CSS ==
# Read [https://developer.mozilla.org/en/Writing_Efficient_CSS the "writing efficient CSS" guide].
# Remember that any selector in your rule which might match many different nodes is a source of inefficiency during either selector matching or dynamic update processing.  This is especially bad for the latter if the selector can dynamically start or stop matching.  Avoid unqualified ":hover" like the plague.


==Lazily Load Services==
==Lazily Load Services==
308

edits