Oxyplug Prefetch and Prerender plugin enables you to prefetch all links with the conditions below for a better performance and user experience.
Prefetch settings
1. You can specify the number of pages on archives or taxonomies to be prefetched immediately after page loading.
2. You can decide whether links should be prefetched when hovering a mouse. By enabling this feature, links with the mouse hovering event for at least 200 milliseconds will be prefetched.
NB: The time should be specified based on the millisecond units of time.
Prerender settings
Another additional feature in the Oxyplug Prefetch and Prerender plugin is prerendering one or some pages, so they will be rendered and ready to load fast before the user requests for that page.
3. You can specify the number of pages prerendered on a category or taxonomy page.
4. By enabling this feature, all links after the mouse hovering event (at least 200 milliseconds) will be prerendered.
Exclusion settings
5. You can enter an address(es) to exclude it from the prefetching and prerendering list. Entering page URLs using Regex is allowed as well.
E.g.: ^https?:\/\/(www\.)?example\.com(?:\/.*)?$
6. You can also exclude links from prefetching and prerendering lists containing a specific selector like id (#no-prerender), class (.no-prerender), or any other selectors.
Prefetch and Prerender options on a single page’s editing side
There is also the possibility for prefetching and prerendering one or some pages on a special page. To do so, you need to open the editing side of the page, then you will see two boxes as shown in the image, containing Prerender and Prefetch options.
1. You can enable the specific pages’ prerendering / prefetching option by toggling on the prerender / prefetch switch.
2. Add the URL of the page that is going to be prerendered/prefetched to the empty field.
3. You can add more links by pressing the “Add more button”.