Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Closure Compiler with jQuery applications
    primarykey
    data
    text
    <p>I have a lot of time invested in jquery and a large application built with it. Recently I've been reviewing <a href="http://code.google.com/closure/" rel="noreferrer">Google Closure Library</a>, but at this time have found it to be not nearly as elegant as jquery. I believe it may have some potential and will look into it more, but for now I intend to continue using jQuery as my base framework.</p> <p>However, I'm extremely impressed with <a href="http://code.google.com/closure/compiler/" rel="noreferrer">Google Closure Compiler</a>. I would love to start using it during the build process of my application. Unfortunately, it isn't exactly clear how easy it will be to use it for projects that do not follow the standard Google Closure standards.</p> <p>Are there any best-practices or good resources on developing jquery-based projects and using the Google Closure Compiler? For instance:</p> <ol> <li><p>Does it make sense to compile jquery and jquery-ui with it, or should I continue pointing to these resources on the google CDN? I'm sure my jquery and jquery-ui will be smaller since I don't use all features of the libraries, but pointing to a CDN increases the the chances the file is already be in a visitor's cache.</p></li> <li><p>My application is split into <em>many</em> files, with a file per function. I'd like to combine them in a specific order and minify them into a file per section on my site. I'd like to automate this process. </p></li> <li><p>Currently my project has a java backend and is built with Maven. Does it make sense to add Google Closure Compiler to this build process?</p></li> </ol> <p>Basically, I'm looking for any good resources that are specific to using Google Closure Compiler with jQuery.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload