Show HN: Listened to your feedback, Critical CSS Generator

Posted by stevenpotts 7 days ago

Counter11Comment4OpenOriginal

Comments

Comment by stevenpotts 7 days ago

Around May I posted a critical CSS generator and it got some attention. I found a word-for-word copy that performs better in Google but has worse results IMO, recently received an email of a person who uses the tool often asking if the tool was being used to train AI and even shared the repo with some people that asked me.

Anyway, this tool appeared to be useful for many people so I moved it to my main site and made it work with Frontend Frameworks and inline CSS, so should work for everyone now.

Comment by wormpilled 1 day ago

I think it's a horrible idea to mess with the scrollbar like that. Basically makes it unusable for it's purpose.

Comment by n_u 2 days ago

Cool! I've always wanted something like this. Usually I just have to manually remove redundant CSS and styling options.

Can you explain why the viewport width and height are needed?

Comment by OuterVale 2 days ago

Content that appears in the viewport before scrolling is considered 'above-the-fold' and is thus prioritised to load quickest. The viewport dimensions are used to figure out what will be above-the-fold.