Saturday, November 8, 2014

Online multiple javascript compression tool


Minifying/compressing javascript files has become a standard for a while already when developing websites. It is very important to save as much space as you can and have your users downloading as little as possible to improve the performance of your site.
I don't think you'll find an article out there that denies it.

An important question that arises from this is which compressor/minifier should you use ?
Different famous open source projects use different compressors, and I'm guessing (or at least hoping) they chose them wisely relying on benchmarks they did on their own.
You see, each compressor works differently, so different code bases won't be affected in the same way by different compressors.

In the past I used to manually test my code against different compressors to see which one was best for me. I finally got sick of doing it manually, so decided to look for a tool that will do the job for me. Surprisingly, I didn't find one that did exactly that, so I quickly wrote a script that will do it for me. Then I decided to design a UI for it and put it online for others to enjoy as well.

I present to you : http://compress-js.com
You can copy text, or drag some js files to it, and choose which compressor you want. Or, and this is the default method, choose 'Check them all' which will compress your code using the most popular compressors and show you the results, and the compressed size from all of them. You can download the files directly from the site.

Here's a screenshot :


Currently the site can compress your javascript code with YUI Compressor, UglifyJS, JSMin and Google's Closure Compiler.
If you have any thoughts or suggestions on how to improve, feel free to drop a comment below. :)

42 comments:

  1. Sorry, the url http://www.compress-js.com/ is not working for me

    ReplyDelete
    Replies
    1. I published the site in a few places and got much more traffic than i expected. The site is back up again. Thanks!

      Delete
  2. Not bad. I always used a Wordpress plugin for this since all of my sites are Wordpress anyway, but it's good to know I can compress my JS elsewhere should I ever make a non-Wordpress site!

    - Fred

    ReplyDelete
  3. Another feature of JavaScript to be noted is that it is case sensitive. Any reference to a function or an object in a JavaScript must match the case used to define the function.
    web design lessons

    ReplyDelete
  4. A very detailed and useful post! Sure your next post will be as great as this. And if you want to find best premium wordpress templates for any kind of business go here https://wordpresstemplates.ch/

    ReplyDelete
  5. It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it! sito web

    ReplyDelete
  6. Great ¡V I should certainly pronounce, impressed with your site. I had no trouble navigating through all tabs as well as related info ended up being truly easy to do to access. I recently found what I hoped for before you know it at all. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Excellent task.. webflow designers

    ReplyDelete
  7. I wanted to say Appreciate providing these details, youre doing a great job with the site... webflow company

    ReplyDelete
  8. I was suggested this website by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my trouble. You’re wonderful! Thanks! top development companies

    ReplyDelete
  9. These are the worldwide favorable circumstances of internet preparing. In any case, investigate and ensure you pick online courses with the accompanying highlights that offer a customized way to deal with learning: it courses london

    ReplyDelete
  10. Ethical qualities are the chief factor in social consistency and simultaneously, the best influencer and change.capstone paper writing service

    ReplyDelete
  11. An article writing service will provide the contents of a blog or website through submission of articles. Essay Writing Service

    ReplyDelete
  12. the high demand of qualified professionals and lower supply of the same, as per the economic principles, the salary structure would be quite attractive. data science course syllabus

    ReplyDelete
  13. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. CCBA training

    ReplyDelete
  14. Web specialists need more abilities past those of customary visual craftsmen, though the regular visual creator keeps on discovering answers to correspondence issues by settling on tone, text style, and pictures.Professional graphic design

    ReplyDelete
  15. I have read your article couple of times because your views are on my own for the most part. It is great content for every reader. Online Toy shop Nicosia

    ReplyDelete
  16. I’m happy I located this blog! From time to time, students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. nice one
    data science course in India

    ReplyDelete
  17. Also, it bodes well. The more individuals you can reach Online, the more clients and customers your business will pull in inside and out. Lead generation

    ReplyDelete
  18. I invite you to the page where you can read with interesting information on similar topics. cna classes online in california

    ReplyDelete
  19. Interestingly you write, I will address you'll find exciting and interesting things on similar topics. Seo for photography

    ReplyDelete
  20. An insignia or standard broadcasting that you utilize green facilitating offers a prompt expression about your on-line business. It says you care about the climate. Webdesign

    ReplyDelete
  21. Off page advancement includes factors that are outside the ability to control of your site. SEO Limburg

    ReplyDelete
  22. Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! Tools for Writers

    ReplyDelete
  23. Fantastic support. This was perhaps one of the best read on the topic of java scripts though I was on hunt for grabbing some reviews on IT company Toronto to gain business success with the perfect IT support. Hence, diving into the whole coding skills I was impressed how you did the tough job into an ease approach. It's supper. Love it very much literally.

    ReplyDelete
  24. This liberates the programmer to do higher worth testing work like planning better and more complete tests. mélybölcsős fuvarozás Europa-Road Kft.

    ReplyDelete
  25. Although this is an excellent choice, it has a significant disadvantage. This is the most expensive vacuum in the pool.
    vacuum heads

    ReplyDelete
  26. Cilicon Spark is the best 510 thread vape pen battery for THC and CBD vaping. it is compatible to all 510 thread cartridge, Spark’s reliable quality promise a durable life expectancy. Read more at the best 510 vape battery.

    ReplyDelete
  27. ESD Wrist Strap is a basic and widely facility in ESD equipment usage, which is very convenient for workers to operate and enables them to ground while working on the Sensitive Electronics. It is compose of wrist loop and grounding wire, the wrist loop is contact with skin directly. Here's information about anti-static wristband, read on to know.

    ReplyDelete
  28. I do not see that as the primary reason since we have never had universal health care. Here is what I think are some of the primary reasons for this trend: crisis management training,

    ReplyDelete
  29. Thank you for sharing a bunch of this quality contents, I have bookmarked your blog. Please also explore advice from my site. I will be back for more quality contents. what is a factoring company

    ReplyDelete
  30. I most likely appreciating each and every bit of it. It is an incredible site and decent impart. I need to much obliged. Great employment! You all do an incredible blog, and have some extraordinary substance. Keep doing awesome. upgrad referral code

    ReplyDelete
  31. Most health insurance policies cover the services provided at physician clinics. These facilities usually do not charge patients for their services. However, the amount they pay for the service may vary. Some public health clinics charge a small co-insurance, others do not. The latter is the most common type of clinic, and it is usually free. These clinics do not require any income and those who come will be treated They also provide many other healthcare facilities including discounted prices. Read more at doctors.

    ReplyDelete
  32. All our actual intercourse dolls are crafted from containing metallic skeletons and can do all of the movements that real human beings can do. The pores and skin is crafted from silicone or tpe inside the direction of human pores and skin, which makes it softer and in addition practical. At Mailovedoll, we pleasant use the top notch clinical silicone TPE cloth within the marketplace, that may be a modern type of silicone, could be very mild, easy and smooth to clean! Our purpose is to offer the first-class remarkable existence size sex dolls, through the fantastic uncooked cloth to be had. All actual dolls are one hundred% new and shipped right away from the producing facility, and all of merchandise are checked before each shipment. For more information, please visit https://mailovedoll.com/6ye-dolls/.

    ReplyDelete
  33. Took me length to door all the explanation, but I actually partook in the article. It ended up being Very respecting me not set in stone to all the analysts here! Its dependably accessible by means of now you can't unmarried-handedly be proficient, however with engaged! Kaspersky Total Security 2019 Key

    ReplyDelete
  34. Ive been attempting to find a few respectable stuff concerning the challenge and dock't had any good fortune going on till this narrowing, You simply got a subsidiary biggest lover!.. GoodBye Quotes

    ReplyDelete
  35. You have performed a great job on this article. It’s very precise and highly qualitative. You have even managed to make it readable and easy to read. You have some real writing talent. Thank you so much.광주출장아로마
    대전출장아로마
    대구출장아로마
    부산출장아로마
    울산출장아로마

    ReplyDelete
  36. Hi there mates, how is all, and what you desire to say regarding this piece of writing, in my view its genuinely amazing designed for me. buy redhead sexdoll

    ReplyDelete
  37. Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know.
    avast secureline vpn full free download

    ReplyDelete