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