Join 401 people who get free RSS updates and follow us on Twitter.

Easily Combine JavaScript Files With JMerge

Looking back at the 2009 year, it is evident that JavaScript has played a big role in web design. Using libraries such as jQuery and MooTools, one can easily apply advanced effects with ease. Indeed, JavaScript is now present on almost every website.

JavaScript Growth

With the rise of this new beast comes a few issues. The biggest libraries out there aren’t too small in terms of code size. Each one can add significantly to load time even when minified. Another problem resides with extra HTTP requests; each new file is accompanied by an extra request. Ultimately, this once again leads directly to a larger wait for users.

Although the first problem can’t be solved simply, reducing HTTP requests is a trivial task; just combine all of your JavaScript into one file. Unfortunately, sometimes it might be difficult or just annoying to do so. That’s why we created JMerge.

JMerge is a simple web application that combines JavaScript files for you. Using it is very simple. When you first enter the page, you’ll see a URL form field:

URL Form Field

Type in the URL of your website and hit continue. After a second or two of loading, you’ll see an unordered list of JavaScript files that are used in the specified URL:

List of JavaScript Files

Click on any of the files you don’t want to merge. This will make them disappear from the list:

Small List of JavaScript Files

Now just click “combine them” and copy/paste the new code into one, merged file! That’s all it takes to combine JavaScript files with JMerge.

What do you think about JMerge? Was it useful for your site? Did you have any issues using it? Tell us in a comment below.

Related posts:

  1. 20 Amazing JavaScript Libraries
  2. GZip files with .htaccess and PHP
  3. Beautiful JavaScript Tooltips
  4. Object Oriented Programming in Javascript
  5. Toggling Visibility with JavaScript

Share this Article

One Response to “Easily Combine JavaScript Files With JMerge”

Trackbacks/Pingbacks

Leave a Reply