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();
ajaxify.renderWidgets(tpl_url, url, function() {
ajaxify.fadeIn();
$(window).trigger('action:ajaxify.end', {
url: url
templates.parseTemplateVariables();
app.processPage();
require(['vendor/async'], function(async) {
async.parallel([
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;

Loading…
Cancel
Save