In the 'Microsoft Project Silk.pdf' file, the following is mentioned:
"this approach often causes jQuery to search the entire DOM to find the element, which can have significant impact on the client-side performance of your application."
In what way is this the case? I always thought/learned that using the id in a jQuery selector was the fastest and most efficient because it can use the browser-method 'document.getElementById'. Other selectors force jQuery to search all or part of the DOM,
or that's what I thought.
I can agree the data- selectors may be a better idea, especially when the id's are determined by designers, but I believe the PDF isn't entirely correct on that point.
Other than that, the PDF is a great read and very educational. Thanks for that.