all JS files properly required on cold load

v1.18.x
psychobunny 11 years ago
parent 52a50a80ba
commit c44934cc0d

@ -653,15 +653,25 @@ var socket,
}); });
createHeaderTooltips(); createHeaderTooltips();
templates.parseTemplateVariables();
ajaxify.renderWidgets(tpl_url, url, function() { app.processPage();
ajaxify.fadeIn();
require(['vendor/async'], function(async) {
$(window).trigger('action:ajaxify.end', { async.parallel([
url: url function(next) {
ajaxify.loadScript(tpl_url, next);
},
function(next) {
ajaxify.renderWidgets(tpl_url, url, next);
}
], function(err) {
ajaxify.fadeIn();
$(window).trigger('action:ajaxify.end', {
url: url
});
}); });
}); });
}); });
showWelcomeMessage = location.href.indexOf('loggedin') !== -1; showWelcomeMessage = location.href.indexOf('loggedin') !== -1;

Loading…
Cancel
Save