mozjpeg
and
oxipng
are used for optimization. A webworker is used if available. Source code for the widget can be found
here
.