Yahooの最速化ルールに「ルール6:スクリプトは最後に置く」ってのがあるけど、
Smarty を使い、フッター部を別テンプレートにしているような場合はこうなるのか。
content.tpl
[html]
CLICK
{{footer_buffer}}
$(function(){
$('#hogehoge').click(function(){
alert('hello');
});
});
{{/footer_buffer}}
{{include file="footer.tpl"}}
[/html]
footer.tpl
[html]
{{footer_flush}}