[*] Installer: pre-compile the smarty templates to improve the loading time of first connection

This commit is contained in:
Rémi Gaillard
2013-01-11 18:13:28 +01:00
parent 52a6a67f74
commit 2c855558cd
3 changed files with 64 additions and 0 deletions
+16
View File
@@ -19,4 +19,20 @@ $(document).ready(function()
});
$('select.chosen').chosen();
// try to pre-compile the smarty templates
function compile_smarty_templates(bo)
{
$.ajax(
{
url: 'index.php',
data: {
'compile_templates': 1,
'bo':bo
},
global: false
});
}
compile_smarty_templates(1);
compile_smarty_templates(0);
});