Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

tiffon

Member since
tiffon

Recent Docs Activity

View all activity
Page Date Comment

Element.matches()


More performant polyfill: http://jsperf.com/element-matches-polyfill-comparison

Array.prototype.sort()


Typo in the edit I made earlier: http://jsfiddle.net/hmk35hhf/2/

Array.prototype.sort()


Returning `0` for equal values can have significant performance benefits. Number of comparator invocations to sort a list of 1024 items: Chrome (2,050 vs 68,142), Firefox (9,045 vs 9,129), Safari (9,194 vs 9,194) jsfiddle: http://jsfiddle.net/hmk35hhf/1/

General sibling selectors