2021-04-28 16:49:39 +02:00

14 lines
389 B
Plaintext

Element selections that could be matched anywhere in the document can be very slow. That's why use of the universal selector, ``++*++``, should be limited; it explicitly specifies that the match could be anywhere.
== Noncompliant Code Example
----
$( ".buttons > *" ); // Noncompliant; extremely expensive
----
== Compliant Solution
----
$( ".buttons" ).children(); // Compliant
----