Loading Javascript files after the page is rendered and response time

view story

http://serverfault.com – So normally javascript files are loaded using the tag. But how can you bind the loading of scripts files(For some secondary features like searching) to the document ready event? And is it generally a good way to minimize your page's response time? (sorry maybe I should ask on SO, but I do want to hear from people that mange the server.) (HowTos)