You can show small loading messages, flash the newly received content etc to make the experience as pleasurable as possible for the visitor.
You can have your code in just one file following all the guidelines to the letter.