Mincss "clears the junk out of your CSS"
11–20 of 52 posts
Re: Mincss "clears the junk out of your CSS"
#12The 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"
#13The 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?
What about a program into which you could feed your pre-processed dynamic documents (php, asp, etc) along with the CSS? I could see myself using that.
And PHP etc is too dynamic.
Personally I think the 'best' option is a program which 'records' you using the site, and as a Dev I could use my site for like 30mins, touching each point of key functionality. Then at the end, review what sections of CSS were never used, and pick and choose what to discard based upon that (i.e. I can manually then check for fringe cases I might know of).
Re: Mincss "clears the junk out of your CSS"
#14Ex: A line of CSS that sets text color of li tags to something, but every li tag already would be that color because of a CSS statement for body.
I'm guessing it'd be hard to build something useful and correct, but I think it'd be an interesting extension of this idea.
Re: Mincss "clears the junk out of your CSS"
#15The 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?
[] You feed in all URLs at once;
`urls = ["/", "/sign_up/", "/about/",]`
[] It pre-proccesses also JS files and tries to match CSS selectors as well. That would work for jQuery and Zepto!
`$("#foo").html($("").addClass("bar"))`
Edit: Okay, that won't work for `addClass`! :)
Re: Mincss "clears the junk out of your CSS"
#16Re: Mincss "clears the junk out of your CSS"
#17The 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"
#18Re: Mincss "clears the junk out of your CSS"
#19The 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?