Search code examples
javascriptjquerydojosizzle

replace dojo.query with Sizzle?


Dojo has got the slowest selectors compared to other JS frameworks.

I was wondering if it was possible to use Sizzle within Dojo to make dojo.query use it behind the scenes? I think it is used in jQuery that way, so it should be possible in Dojo too.

Couldn't find any info about how to do that.

PS The test at the link seems to be being actively developed and changes daily, so make sure you select the latest version on that page.

EDIT: it appeared that the numbers in the test were not correct, and the difference between Dojo and others is not really as radical. That makes the task of including Sizzle into Dojo not worth the effort.


Solution

  • I question your numbers. Others have come to the opposite conclusion about Dojo's query engine. They're all pretty fast, to the point where is probably doesn't make that big a difference.