Пример JS.Include
Html:
<script type="text/javascript">var STATICVER = 83;</script>
Java-script:
try{ js = {"STATICVER": STATICVER}; } catch(e){ js = {};}; js.include = function(path) { if (typeof(this.STATICVER) == "undefined") { this.STATICVER = new Date().getUTCDate(); } document.write('<script type="text/javascript" src="' + path.replace('STATICVER', this.STATICVER) + '"></sc' + 'ript>'); } js.dynamicInclude = function(path, callback) { if (typeof(this.STATICVER) == "undefined") { this.STATICVER = new Date().getUTCDate(); } $.ajax({ dataType: "script", cache: true, url: "/js/" + this.STATICVER + "/" + path }, callback); } js.include('/js/STATICVER/crimea.js');