I remember reading about a meta tag that makes the browser preload a page. What\'s the tag again?
This might not be a good answer to the question, but just for the info InstantClick.js can preload your links before you actually click on it.
How does it work
Before visitors click on a link, they hover over that link. Between these two events, 200 ms to 300 ms usually pass by. InstantClick makes use of that time to preload the page, so that the page is already there when you click.
Some user agents may choose to preload when this is present, but you can't bet on it.
<link rel="next" href="http://www.example.com/link-reference">
Prealoding the assets, is one of the hardest as well as simplest tasks in a FLASH or HTML5 project because we have done FLASH to HTML5 conversion projects.
The easiest kinds of preloaders are static preloaders used to load the movie in which they exist. For these preloaders, all you need to do is stop the movie on a preloader screen, usually the first frame of the movie, and keep it there until you are able to determine that the movie has been completely loaded into the Flash player.
The Preloader also stops any flickering or delay when changing uncached images on a web page since the same image has to be downloaded from the server every time it is needed to be displayed.
We have used jQuery HMTL5 Loader in our web apps(HTML5), you can see the Github Repo here.
This plugin needs a JSON file to get the files that it has to preload, and it can preload images, html5 video and audio sources, script and text files. In addition to this, it has a different type of loaders (circular,line, big counter,etc) and additional features so on.
It is implemented like this.
<script>
var loaderAnimation = $("#html5Loader").LoaderAnimation();
$.html5Loader({getFilesToLoadJSON:'json file',
onUpdate: loaderAnimation.update,
debugMode:false
});
</script>
Its working perfectly in different browsers including Chrome, FireFox, Safari, Opera, etc and in mobile browsers.
Note: We have used this for our HTML5 web applications which runs in different platforms including android and iOS.
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 from caniuse and up-to-date as of September 2015):
IE 9 implemented DNS prefetching only but called it "prefetch"
(caution!). Chrome for a while (at least as far as 2013) only did prerendering and DNS prefetching. IE11 implements lazyload, for images; Microsoft has tried to get it in the spec but so far it isn't. iCab is stated to have been the first browser to implement prefetching, although this behaviour was automatic, not controlled by the markup.
The Mozilla Application Suite, and later, Firefox, implement the spec (the spec is actually based on Mozilla's early implementation of prefetching, which was somewhat based on the Link:
header specified in RFC 2068 which has now been superseeded by RFC 2616 [which does not reference the Link:
header]. See this old version of the docs (
There are a couple of ways how you can preload a page:
<link rel="dns-prefetch" href="//example.com">
in the of the document. This might be helpful if you need to use 3-rd party elements.<link rel="preconnect" href="https://example.com/">
<link rel="prefetch" href="imgs/image.png">
. Note that this is up to the browser to decide whether it makes sense to download the resource (it might ignore you)<link rel="prerender" href="http://example.com/page">
. You should be pretty sure that the person will open the page, otherwise you will just waste his bandwidth.