render widgets sooner

v1.18.x
psychobunny 11 years ago
parent cad10a3f9e
commit 09c632330b

@ -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;

Loading…
Cancel
Save