Hacker News new | ask | show | jobs
by bigbadgoose 2649 days ago
OK, what all these tools have not exhibited so far is upstream optimization of source generator, ie scss.

Dream scenario: 1/ run against generated output via url submission, 2/ receive optimized output, 3/ point at source generator tree, 4/ receive suggested source diffs

Lucid dream scenario: point at repository, receive optimized source diff suggestions on a per-file basis

2 comments

> 4/ receive suggested source diffs.

most of the removed css isnt necessarily useless globally, it's just useless in context. eg a shared bootstrap css grid will be pruned differently on different pages, but there's no single "suggestion" that can be used to modify that shared initial grid.

for css that's leftover by accident that should actually be removed from the source, i agree. but how will you discern the first scenario from the second?

Per-group (URLs that operate within a 10% optimization range) cached css, generated by source tree + crawl + ongoing visit data?

Edit, also pls send me a pony. Optimzations have a few audiences, the primaries of which are the visitor and the developer. Source tree prunes ("developer audience") not addressed in my off-the-cuff pipe dream above

CSS-blocks.com is the closest high-quality tool like this, but it's approach is slightly different, it doesn't work against any page, but for this approach it's by far the best quality and most powerful tool like this right now. And, it's made by one of the maintainers of Sass