- This topic is empty.
-
AuthorPosts
-
September 15, 2014 at 4:41 pm #183178
shaneisme
ParticipantI searched and couldn’t find anything, so I decided to put this up in case anyone that might use it doesn’t know about it:
https://github.com/giakki/uncss
If you’re using a CSS library like Bootstrap, Foundation or one you made yourself, this can give you extraordinary savings on CSS file size.
I was actually rolling my own base library, this was only 44kb min unzipped, but I was doing this in conjunction with the site CSS so I would of course get a second render block. Regardless of how small the files were, I now have a single CSS file that uses only the selectors I need and none I don’t.
2 files to download, one at 44kb another at 11kb -> 1 file to download at 19kb. Other sites I’ve seen out there can have even more dramatic improvements.
Not bad :)
September 15, 2014 at 5:16 pm #183182Alen
ParticipantSeptember 15, 2014 at 5:23 pm #183186shaneisme
ParticipantVery nice! Tons of stuff (including UnCSS) in that talk…
September 15, 2014 at 9:37 pm #183210nixnerd
ParticipantHey doesn’t Grunt have a feature for this?
September 15, 2014 at 10:50 pm #183214shaneisme
ParticipantYeah, it’s linked from the github.
September 15, 2014 at 10:52 pm #183215nixnerd
ParticipantAhhh… I think this is the one I was talking about. I want to use it on a project but… I’m having some Grunt issues. This is specifically the tool I want Grunt for though.
September 15, 2014 at 11:55 pm #183220chrisburton
ParticipantOut of curiosity, is there a similar tool for jQuery?
September 16, 2014 at 12:01 am #183221nixnerd
ParticipantProbably. I get lost with all the tools on Github.
September 16, 2014 at 9:00 am #183259Alen
Participantis there a similar tool for jQuery
What do you mean?
You can custom build jQuery and only require things you need or using.
September 16, 2014 at 9:48 am #183264nixnerd
ParticipantI think he means to clean up unused functions, objects or whatever. But @chrisburton, I must say that for me at least, my JS files are MUCH smaller than my CSS files. I don’t often have functions that are doing jack shit and I’m sure you don’t either. These files should be easier to review and edit yourself.
Now… if someone knows of a tool to detect infinite loops, I’m interested! Oh wait… isn’t that the halting problem? Nevermind.
September 16, 2014 at 10:24 am #183266chrisburton
ParticipantThese files should be easier to review and edit yourself.
Truth.
September 16, 2014 at 10:33 am #183267nixnerd
ParticipantTruth.
Even still… I bet someone has created a tool for it and put it on Github.
September 16, 2014 at 10:48 am #183270chrisburton
ParticipantEven still… I bet someone has created a tool for it and put it on Github.
I just need to take time to create a custom jQuery library that fits what I need. If there’s a possible tool for that, great. I’ll have to find it. Anyway, sorry to hijack the thread.
September 22, 2014 at 2:45 am #183953chrisburton
ParticipantSeptember 22, 2014 at 7:34 am #184111Paulie_D
MemberGot it….
I’ve been out of the country and sans interweb access for most of the time.
Nearly 100 posts spammed and deleted.
What a welcome back
@RobSkiWarrior If you can ban/block/hitwithhammer this guy. -
AuthorPosts
- The forum ‘Other’ is closed to new topics and replies.