mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
render widgets sooner
This commit is contained in:
@@ -93,6 +93,7 @@ var ajaxify = ajaxify || {};
|
|||||||
templates.parse(tpl_url, data, function(template) {
|
templates.parse(tpl_url, data, function(template) {
|
||||||
translator.translate(template, function(translatedTemplate) {
|
translator.translate(template, function(translatedTemplate) {
|
||||||
$('#content').html(translatedTemplate);
|
$('#content').html(translatedTemplate);
|
||||||
|
ajaxify.widgets.render(tpl_url, url);
|
||||||
|
|
||||||
ajaxify.variables.parse();
|
ajaxify.variables.parse();
|
||||||
|
|
||||||
@@ -106,8 +107,6 @@ var ajaxify = ajaxify || {};
|
|||||||
|
|
||||||
app.processPage();
|
app.processPage();
|
||||||
|
|
||||||
ajaxify.widgets.render(tpl_url, url);
|
|
||||||
|
|
||||||
$('#content, #footer').stop(true, true).removeClass('ajaxifying');
|
$('#content, #footer').stop(true, true).removeClass('ajaxifying');
|
||||||
ajaxify.initialLoad = false;
|
ajaxify.initialLoad = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user