Easy integration of a preload plugin in a website

written by Admin


Posted on 2015-03-20


Problem

I want to add easily to a website a sort of plugin to preload images, css, javascript, etc and show a progress bar.

Solution

Download PACE from this link:
http://github.hubspot.com/pace/docs/welcome/

Add these two lines of code on the head section of the page:
<script src="js/pace.js"></script>
<link href="css/pace.css" rel="stylesheet" />
...pointing the javacript and the css of the theme that you chose.

Feedback


Comments

Leave a Comment:

Search

Welcome

We need collaboration and a real boost from our community: write us an email for every trick you find!

This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

Our database grows if YOU send us your tips and trick as soon as you find them every day!