From e84c87d76538b76a88ab1c75d2968ad75a364cf2 Mon Sep 17 00:00:00 2001 From: Rayson Zhu Date: May 20 2016 03:43:14 +0000 Subject: add support for putting scripts just before the closing tag This will speed up page rendering by allowing themes to insert scripts to the bottom of the HTML file. See https://developer.yahoo.com/performance/rules.html#js_bottom . --- diff --git a/www/kojiweb/includes/footer.chtml b/www/kojiweb/includes/footer.chtml index 0e97021..01f29a4 100644 --- a/www/kojiweb/includes/footer.chtml +++ b/www/kojiweb/includes/footer.chtml @@ -18,6 +18,10 @@ $localfooter - +#set $localbottompath=$util.themePath("extra-bottom.html", local=True) +#if os.path.exists($localbottompath) +#set $localbottom="".join(open($localbottompath).readlines()) +$localbottom +#end if