Styliner icon indicating copy to clipboard operation
Styliner copied to clipboard

Comparison to Juice

Open parshap opened this issue 11 years ago • 4 comments

Can you document how Styliner differs from Juice?

parshap avatar Jun 17 '14 18:06 parshap

Styliner is better for handling media queries. Because Juice will ignore them. Styliner is preserving them in style tags, so that they are used by email clients who don't throw away the style tags.

zauni avatar Aug 27 '14 11:08 zauni

There is also juice2 which has an option to preserve media queries.

andrewrk avatar Sep 30 '14 15:09 andrewrk

I wrote the differences between the libraries in here:

  • juice. 1.7Mb with dependencies.
  • juice2. 5.9Mb with dependencies. This is a fork of juice, seems to be containing more options than juice. This one doesn't drop media queries as juice does. Sorts inline css rules alphabetically.
  • styliner. 4.0Mb with dependencies. This one uses promises instead. Have a couple of different options than juice2. Has a compact option that other ones don't have that minifies the html. Doesn't read the html file itself as others do. Also extends margin and padding shorthands.

faridnsh avatar Jan 11 '15 09:01 faridnsh

Juice removes pseudo-classes whereas Styliner preserves them in <style>

stevenvachon avatar Dec 22 '16 15:12 stevenvachon