Automattic / Automattic/juice

Optionally not inline selectors that match multiple times

Open
#232 4 comments 0 reactions 0 assignees View on GitHub
Suggested Feature
Dominant language
JavaScript
Stars
3.3k
Forks
233
Avg merge
1d 10h
Merged PRs (30d)
8

Description

When a selector matches multiple times (DOM elements) and full inlining is not required,
it would be great if an option could be added that would let juice not inline
that particular selector because the overhead would be actually lower
(selector+block once vs repeating the declarations per element).

Related to: https://github.com/svg/svgo/pull/592

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.