How can I preload a page using HTML5?

Prefetching is included in a W3C spec under the name Resource Hints. It is implemented in Firefox, Chrome, IE 11, Edge, Opera after 12.1, and the Android Browser from 4.4.4, see the caniuse prefetch page for more and up-to-date details. Also see the caniuse and spec pages for related technologies (supported browsers afterwards are retrieved … Read more

Preloading CSS Images

Preloading images using CSS only In the below code I am randomly choosing the body element, since it is one of the only elements guaranteed to exist on the page. For the “trick” to work, we shall use the content property which comfortably allows setting multiple URLs to be loaded, but as shown, the ::after … Read more