Live data from Hacker News

Mincss "clears the junk out of your CSS"

peterbe.com

1–10 of 52 posts

Re: Mincss "clears the junk out of your CSS"

#5
A few years ago I wrote a python script which does this and more. It inlines the CSS to the page and reduces it to only the used CSS rules [1].

Additionally, my version can also inline the page images as base-64 encoded blocks.

Cheers!

[1] https://github.com/jaytaylor/python-inlineify-html

Re: Mincss "clears the junk out of your CSS"

#8
The problem I have with these CSS mini programs is that a 'dynamic' site might not always load the css on each page, unless under certain specific circumstances.

i.e. what about ajax calls that result in a new div showing?

or a responsive CSS file with media queries depending upon the size of the screen?

Re: Mincss "clears the junk out of your CSS"

#10

The problem I have with these CSS mini programs is that a 'dynamic' site might not always load the css on each page, unless under certain specific circumstances. i.e. what about ajax calls that result in a new div showing? or a responsive CSS file with media queries depending upon the size of the screen?

[deleted]
Post reply on HN