DropCSS

Dev tools

css optimization

SHOW HN2019

134points
25comments
#338of 2,195 in 2019
Top 16%of 2019 by points

How HN took it

MixedNo clear lean

1 positive, 3 neutral or asking, 0 mixed, 3 critical, out of 7 comments about the project. Thread score -0.29.

Performance: 0 for, 1 againstExecution: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Nice work and useful tool

    From 2 comments
    • Nice work! Will give it a try.
      owens99 on HN
    • Very nice tool. Small request. Can you use your knowledge of AST etc. to write another small 60 line script that just counts the amount of style rules in a CSS file? I have tried…
      Theodores on HN

Objections

  • Dynamically changed HTML may cause false positives without whitelists

    From 1 comment
    • What about dynamically changing HTML? Modal dialogs, dynamically loaded divs (depending on access rights), etc. Unless your css is only ever loaded when the corresponding HTML…
      amoerie on HN
  • Written in JavaScript, slower than a compiled implementation

    From 2 comments
    • I wish there was something like this not written in JavaScript.
      JensRex on HN
    • i'm sure there will be soon enough. i kind of laughed to myself when calling it "fast" since it takes 175ms to process ~45 KB of data :D. in a compiled language (or wasm) it…
      leeoniya on HN

Requests

  • Support for SCSS, Angular HTML and JS/TypeScript templates

    From 1 comment
    • Does (or will) this support SCSS, and Angular HTML, and JavaScript/TypeScript/JSX? I'm on a project right now where a tool like that will be immensely helpful pretty soon.
      buu700 on HN
  • Inline ignore rules like Purgecss

    From 1 comment
    • yep, you need to keep a whitelist. i made a 10-liner plugin for css-obj (see my other comment) which i use to mark certain selectors with "!keep" which populates my per-page…
      leeoniya on HN

Questions

  • Why is WASM faster than JavaScript

    From 1 comment
    • Why is wasm faster than javascript? Can't the browser compile javascript to something equivalent?
      postalrat on HN

Alternatives named

  • Purgecss

    From 1 comment
    • Hi HN, I put this together when looking to replace Purgecss in my build chain due to its numerous and unresolved/unresolvable correctness deficiencies. TL;DR: - Tiny API, ~60 LOC…
      leeoniya on HN
  • UnCSS

    From 1 comment
    • Hi HN, I put this together when looking to replace Purgecss in my build chain due to its numerous and unresolved/unresolvable correctness deficiencies. TL;DR: - Tiny API, ~60 LOC…
      leeoniya on HN
  • PurifyCSS

    From 1 comment
    • Hi HN, I put this together when looking to replace Purgecss in my build chain due to its numerous and unresolved/unresolvable correctness deficiencies. TL;DR: - Tiny API, ~60 LOC…
      leeoniya on HN
  • Chrome DevTools coverage tab

    From 1 comment
    • The css/js coverage tab in Chrome's developer tools is also pretty neat: https://developers.google.com/web/updates/images/2017/04/coverage.png It drills down into the files, and…
      tyingq on HN
  • CSS-blocks

    From 1 comment
    • 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…
      err4nt on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/19469080)