Allows developers to compress (GZIP & JSMIN) JavaScript files as well as concatenate them into one single file.
All the URLs must be relative to the current theme.
For example if your theme is default and you have javascript file called file.js inside this theme.
<script src="<?php wp_js('file.js'); ?>" type="text/javascript"></script>
If you had a file inside another folder within the current theme folder. For example, theme/default/javascript
<script src="<?php wp_js('javascript/file.js'); ?>" type="text/javascript"></script>
Of course, visit WP JS Home Page
Yes I am, visit my services page to find out more.