32 lines
530 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Using element type in class selectors is slower than using only the class selector.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
var $products = $("div.products"); // Noncompliant - slow
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
var $products = $(".products"); // Compliant - fast
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]