mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
all JS files properly required on cold load
This commit is contained in:
@@ -653,15 +653,25 @@ var socket,
|
||||
});
|
||||
|
||||
createHeaderTooltips();
|
||||
templates.parseTemplateVariables();
|
||||
app.processPage();
|
||||
|
||||
ajaxify.renderWidgets(tpl_url, url, function() {
|
||||
ajaxify.fadeIn();
|
||||
|
||||
$(window).trigger('action:ajaxify.end', {
|
||||
url: url
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user