• 0

HTML / CSS / Javascript Minimizer Recommendations


Question

Hello everyone!

I'm trying to reduce the size of my site so that I can speed it up a bit and was looking at minimizers.  I have found a few online, but wanted to ask what everyone else uses.

I have two requirements:
1) I would prefer an application that I could install on my machine as opposed to a website.

2) I would like something that will allow me to batch all of my html / css/ and javascript files all at once just for conveniences sake.

 

Does anyone have any that they would recommend?

 

Thanks again for your help!

4 answers to this question

Recommended Posts

  • 0
  • 0

I personally use Koala for batch less/sass compilation and css/js minification. You can also have a file automatically processed on each edit, this way you can locally work on a website and have the minified js updated on every edit. 

 

Also you could consider using an IDE like webstorm which has above features plus a lot more functionality all combined in a single application.

 

Also minifying html isn't worth the gain these days, most optimization that can be done is removing line breaks and whitespace which is negligible. As example if you're worried that your html is too big in a search result page you could consider implementing pagination.

 

Minifying is not such a big speed gain as most people expect, yes the first page load is faster but the page loads after that use the cached resources so it doesn't matter anymore if the resources are minified or not.

 

So why do sites minify anyway even when resources are cached anyway on the first visit?

Obviously they want the first visit to be fast too and they want to save bandwidth by having smaller resources.

  • 0

Thank you both for your help.

I don't honestly yet know the merits or value of minifying my html, however it was something that I was looking into (along with reducing the size of images, minifying the css, etc.).  I will deinitely take a look at Grunt as well.

A large amount of my traffic comes from mobile anymore, and as a result I just want to make sure that I have the fastest experience possible.  While optimizing the images doesn't impact my development work each week, minifying the html for instance creates a significant maintenance headache if I cannot do it on the fly prior to publishing the site update (i.e. maintaining a readable copy for edits).  That's why I was originally looking into this.  I was really shocked at how few tools actually exist to do this beyond one page at a time...  That hardly seems productive.  lol

Thank you both for your help.  I am going to continue to look at options and ideas for further improving the speed of the site, and will give this a try.  If it isn't cumbersome to implement, and the gains are there, I would definitely start doing this.  :)

  • 0

At least you are not one of those nut case minimalists that hand craft the smallest possible HTML and then completely idiotically ignore the megabytes of payload that SEO and Adsense stuff add to the page.

 

BTW, just search GitHub on keywords like "Javascript" and "ES6" and then sort the results by # of stars and you will get tons and tons of pre-canned "workflows" that will include all the popular minimizing utils. Darned good chance that one of the popular workflows will suit your own personal style.

 

Even just browsing through just the Facebook GitHub will yield tons of illuminating information on all aspects of webdev.

 

This topic is now closed to further replies.
  • Posts

    • I'd say the first one failed to be as popular as Apple anticipated, but the easy adjustment here is to make fewer of them next time around. It would only be a "flop" if it isn't possible for Apple to recover the design and factory tooling costs given the number of units sold, which I doubt would be the case. It isn't like no one bought them; it just failed to become the new hot phone of the year.
    • You're right that it does not follow the plain meaning of the word, but in this context, it is a legal term defined in 49 U.S.C. Kind of how "wire fraud" laws apply even if a physical wire was not used. Given that it is codified in law, and it isn't just automotive journalists that don't understand evolving technology, I highly doubt congress would change a well understood term just because technology makes the term slightly less actuate.
    • This is exactly why I keep saying we are not ready for human free self-driving. These little "bugs" are may seem like random one-offs. There was also the Waymo that drove between police with drawn weapons and the suspect they were pointing them at. From a software perspective it is easy to understand how those extremely rare situations may not have been programed for, but that is the point. If AI needs to be told to watch out for every possible contingency, then it can never be successful. There will always be the possibility of a first encounter that the AI needs to understand to avoid.
    • TeraCopy 4.0 Final by Razvan Serea TeraCopy is a compact program designed to copy and move files at the maximum possible speed, also providing you with a lot of features. Copy files faster. TeraCopy uses dynamically adjusted buffers to reduce seek times. Asynchronous copy speeds up file transfer between two physical hard drives. Pause and resume transfers. Pause copy process at any time to free up system resources and continue with a single click. Error recovery. In case of copy error, TeraCopy will try several times and in the worse case just skips the file, not terminating the entire transfer. Interactive file list. TeraCopy shows failed file transfers and lets you fix the problem and recopy only problem files. Shell integration. TeraCopy can completely replace Explorer copy and move functions, allowing you work with files as usual. TeraCopy is free for non-commercial use only. For commercial use you need to buy a license. The paid version of the program includes the following features: Copy/move to your favorite folders. Save reports as HTML and CSV files. Select files with the same extension/folder. Remove the selected files from the copy queue. Download: TeraCopy 4.0 | 14.6MB (Freeware, paid upgrade available) View: TeraCopy Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
    • First Post
      BizSAR earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      586
    2. 2
      +Edouard
      187
    3. 3
      Michael Scrip
      74
    4. 4
      PsYcHoKiLLa
      72
    5. 5
      neufuse
      69
  • Tell a friend

    Love Neowin? Tell a friend!