optimized cold loading

v1.18.x
psychobunny 11 years ago
parent 10f4fa004e
commit cd336006fc

@ -658,20 +658,11 @@ var socket,
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();
ajaxify.renderWidgets(tpl_url, url);
$(window).trigger('action:ajaxify.end', {
url: url
});
ajaxify.loadScript(tpl_url, function() {
$(window).trigger('action:ajaxify.end', {
url: url
});
});
});

Loading…
Cancel
Save