EntropySink

Technical & Scientific => Programming => Topic started by: ober on December 06, 2012, 12:38:33 PM

Title: JQuery - multiple versions
Post by: ober on December 06, 2012, 12:38:33 PM
SO I have an interesting problem.  In our platform on the current production version (patch branch), we have 'jquery-1-5-1.js' or something like that.  On the current HEAD version, we have jquery-min.js (newer version, no version in the filename).  That's not a problem for core code, but for custom client code, the pages will span versions.  So eventually jquery-1-5-1.js will no longer exist.

So... can I just include both?  Would that work??

<script type="text/javascript" src="javascript/jquery-1.5.1.js"></script>
<script type="text/javascript" src="javascript/jquery.min.js"></script>
Title: Re: JQuery - multiple versions
Post by: Mike on December 06, 2012, 12:55:20 PM
Why not just make jquery.min.js a symlink to the version you want?
Title: Re: JQuery - multiple versions
Post by: ober on December 06, 2012, 01:51:04 PM
Eh, not worth it at this point.  I'll just use old school JS for this one small thing.