What is the HTML compressor using? It’s missing quite a few opportunities. Take this input HTML: This is a title Well. I wonder… It produces this output: This is a title Well. I wonder… It converted “doctype” to uppercase (equivalent, but bad for compression). It didn’t strip and as superfluous. It didn’t remove unnecessary quotes around attribute values. It didn’t remove the unnecessary closing tags. Here’s what I s…
Show HN: Online web tools to get your work done faster
21–30 of 37 posts
Re: Show HN: Online web tools to get your work done faster
#22I'm curious, who here has a development workflow such that compressing/minifying code via an ad-hoc web tool makes sense? I've always just included it as part of a build process, or at the very least would pipe it into uglifyjs command line. I'm sure everyone's got their own needs but I just don't understand how that would be useful.
I haven't done this exact thing, but I've done similar things many times. Not every project has or should have a build process. And unfortunately not all of them even have a command line...
Re: Show HN: Online web tools to get your work done faster
#23What is the HTML compressor using? It’s missing quite a few opportunities. Take this input HTML: This is a title Well. I wonder… It produces this output: This is a title Well. I wonder… It converted “doctype” to uppercase (equivalent, but bad for compression). It didn’t strip and as superfluous. It didn’t remove unnecessary quotes around attribute values. It didn’t remove the unnecessary closing tags. Here’s what I s…
Uh, yeah. Now that we have rules for parsing broken webpages, let's intentionally break our webpages.
Re: Show HN: Online web tools to get your work done faster
#24Earlier quoted context omitted.
Uh, yeah. Now that we have rules for parsing broken webpages, let's intentionally break our webpages.
That‘s perfecly valid HTML. Try it. Pass it to a validator.
Re: Show HN: Online web tools to get your work done faster
#25I'm curious, who here has a development workflow such that compressing/minifying code via an ad-hoc web tool makes sense? I've always just included it as part of a build process, or at the very least would pipe it into uglifyjs command line. I'm sure everyone's got their own needs but I just don't understand how that would be useful.
Re: Show HN: Online web tools to get your work done faster
#26Re: Show HN: Online web tools to get your work done faster
#27I'm curious, who here has a development workflow such that compressing/minifying code via an ad-hoc web tool makes sense? I've always just included it as part of a build process, or at the very least would pipe it into uglifyjs command line. I'm sure everyone's got their own needs but I just don't understand how that would be useful.
You're touching up an old website for your old client and have just a few minutes to...ah, I wonder if there's a quick minimizer out there somewhere? That might be fun to try, and we did just add a bit more overhead to the site. I haven't done this exact thing, but I've done similar things many times. Not every project has or should have a build process. And unfortunately not all of them even have a command line...
Either setup a trivial build script, or don't do it at all.
EDIT: Clearly HN disagrees with me. Tell me, what does being a cowboy get you here?
If it's a measurable performance boost, then as soon as you patch it again your site will seem slower. Unless you then manually minifiy again. And again. Until you setup a build script.
If it's not a measurable performance boost, (And I doubt that you know either way because if you're not setting up a trivial build script then I highly doubt you're putting in the time to profile) then what do you get? The next person to come along gets to have a harder time debugging because you don't have source maps?
Re: Show HN: Online web tools to get your work done faster
#28Earlier quoted context omitted.
Thanks for the feedback. At initial step, I don't focus much on this thing. I will provide a nice contact page in future.
Perfectly reasonable. I would then suggest changing it from "Contact Us" to "hello@hreftools.com" to prevent any confusion (Principle of Least Astonishment) :)
Re: Show HN: Online web tools to get your work done faster
#29Earlier quoted context omitted.
You're touching up an old website for your old client and have just a few minutes to...ah, I wonder if there's a quick minimizer out there somewhere? That might be fun to try, and we did just add a bit more overhead to the site. I haven't done this exact thing, but I've done similar things many times. Not every project has or should have a build process. And unfortunately not all of them even have a command line...
If you don't have an established build process, I would consider a one-time minification of an established codebase to be a pretty poor decision. Either setup a trivial build script, or don't do it at all. EDIT: Clearly HN disagrees with me. Tell me, what does being a cowboy get you here? If it's a measurable performance boost, then as soon as you patch it again your site will seem slower. Unless you then manually mi…
Re: Show HN: Online web tools to get your work done faster
#30Earlier quoted context omitted.
Perfectly reasonable. I would then suggest changing it from "Contact Us" to "hello@hreftools.com" to prevent any confusion (Principle of Least Astonishment) :)
Doing this will invite bad bots to spam my inbox.