Slick vs. Sizzle -- Pros and Cons of CSS selector engines
Asked Answered
E

2

6

When would I want to use Slick and when would I want to use Sizzle? What are the pros and cons of each as a standalone CSS selector engine? How easily can Slick be used with JQuery? Can Sizzle be used with Mootools?

Ehling answered 16/7, 2010 at 19:30 Comment(1)
An article from a year-and-a-half ago where Valerio Prioletti states why sizzle wasn't included in Mootools. I think the best argument has to do with maintaining the code base.Ehling
B
6

http://davidwalsh.name/mootools-sizzle - using mootools with sizzle.

valerio posted about why mootools in particular was never going to use a 3-rd party project like sizzle - lookie here http://ajaxian.com/archives/mootools-and-sizzle

since that post, the need to scale the mootools selector engine must have resulted in the advent of slick (which is a standalone engine but one that the mootools team develop so its easily maintainable / patchable)

you can easily checkout slick and port it into whatever framework as well. here's a gist on using slick in mootools 1.2.x - http://gist.github.com/361474

interesting posts on use are around, http://davidwalsh.name/elements-shorthand-slick for example but it's all early adopters stuff so before 1.3 is out proper, i don't expect it getting too much attention.

as for performance, its nearly identical from some beta tests i saw a while back with sizzle getting ahead slightly on things like document.body. anyway, post your findings, would be interesting.

Bowlder answered 16/7, 2010 at 19:43 Comment(0)
N
2

I realize that this is an older post, but I recently came across it while searching for a way to use Sizzle instead of Slick with MooTools, specifically as an effort to improve performance. Ultimately I couldn't find anything existing, but the Gist referenced above lead me to writing a library that allows swapping out Slick for Sizzle without altering the MooTools API. I am sharing it here as a point of reference for anyone else who may come across this post with similar intent. The library can be found on GitHub at https://github.com/mzabriskie/sickle

Nole answered 21/8, 2013 at 2:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.