Preload per page

As you probably know preloading the assets that the web page needs during the first rendering is a big help for the performance.

There are many plugins that can help you with preloading, but they don’t give you the possibility to do it on specific pages.

If you preload an image, a stylesheet, a script, or whatever asset everywhere, on the pages where you don’t need it you will add an HTTP request, and instead of improving, the performance will worsen.

To solve this problem I’ve created a very little plugin that gives you the possibility to preload assets per page. It’s Asset Preloader. You will find it on the page of plugins of your backend or on the WordPress repository.

Decide which assets you want to preload depending on the page.
If a specific page needs a specific asset before others, you should preload it only on that page, not everywhere.
This plugin gives you the possibility to preload assets per page.
You will find a section in every single page and post in the backend, but also a global settings page where you can decide the assets that you want to preload everywhere.

HOW TO PRELOAD A SPECIFIC ASSET ONLY ON A SPECIFIC PAGE WITH ASSET PRELOADER

  • Go to that single page in the backend
  • Add the URL of the asset in the textarea that you see below Asset Preloader

HOW TO PRELOAD A SPECIFIC ASSET ON ALL THE PAGES WITH ASSET PRELOADER

  • Go to Asset Preloader
  • Add the URL of the asset in the textarea that you see in the global settings