Answers ( 1 )

  1. 2017-01-03 13:01

    You can always run your code on jsperf.com to check code sequence performance in different browsers.

    About your questions. Chrome run shows that strict selector (tag + class name) is much slower than class selector only

    enter image description here

    Anyway you can rerun this code in different browsers to use different program flow based on browser type.

    https://jsperf.com/jquery-class-vs-tag-qualfied-class-selector/2

◀ Go back