24 lines
527 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
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.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
$( ".buttons > *" ); // Noncompliant; extremely expensive
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
$( ".buttons" ).children(); // Compliant
----
ifdef::rspecator-view[]
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::rspecator-view[]