Skip to main content
Topic: Add PACE.js (Automatic page load progress bar) to PHPRad (Read 7401 times) previous topic - next topic

Add PACE.js (Automatic page load progress bar) to PHPRad

https://github.hubspot.com/pace/docs/welcome/

How to:
1.Download pace.js and create pace.css file that match your project from link above.
2.Place pace.js in assets\js
and pace.css in assets\css
3.Add code in \app\views\layouts\main_layout.php

4.Done. 8)

 

Re: Add PACE.js (Automatic page load progress bar) to PHPRad

Reply #1
Adding code to application's core files will get overwritten each time we export the project, right?

Re: Add PACE.js (Automatic page load progress bar) to PHPRad

Reply #2
Adding code to application's core files will get overwritten each time we export the project, right?
yes, but you can exempt a specific project file from being overwritten in Project Settings on the left panel by unchecking them. Note that if you do this, PHPRad assumes you what ever changes that need to be made to that page will be made by you.