Optimize javascript css download
===

I have a number of pages for my website all use jquery and json and the same css except few pages.The first page is user login.As the user will take time to type in his username and pwd i want to download all the required javascript and css files for entire user session during login.How can this be done? the header is the same for all pages.How do i optimize it?