Some home pages, like Yahoo! home page and My Yahoo!, typically have only one page view per session. However, that's not the case for all home pages. Yahoo! Mail is a good example of a home page that often leads to secondary page views (pages that are accessed after the initial page, such as those for viewing or composing email messages).
For home pages that are the first of many page views, we want to
files for all secondary page views. This is accomplished by
dynamically downloading the external components in the home page after
it has completely loaded (via the
onload event). This places the external
files in the browser's cache in anticipation of the user continuing on
to other pages.
doOnload function with the document's
onload event. After a one-second
delay (to make sure the page is completely rendered), the appropriate
appropriate DOM elements (
link, respectively) and assigning the specific ...