Here is a basic example of Preloading the content on the webpages.
JS and CSS preload example
Preloading Example
Here we preload our CSS and JavaScript files so they will be available as soon as they are required for the rendering of the page later on.