Skip to content

Node.js based forum software built for the modern web

all JS files properly required on cold load

psychobunnyc44934cc0d8f
diff --git a/public/src/app.js b/public/src/app.js
index f8f9b2f9c2..1fc143740c 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -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;