PHPRad Classic Initial 2.7.3 Forum

PHPRad Forum => Blogs => Topic started by: tin on October 29, 2019, 07:39:35 AM

Title: Add PACE.js (Automatic page load progress bar) to PHPRad
Post by: tin on October 29, 2019, 07:39:35 AM
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
(https://i.ibb.co/WPR0kNt/noname5.png)
4.Done. 8)
Title: Re: Add PACE.js (Automatic page load progress bar) to PHPRad
Post by: Ross T. on July 17, 2022, 06:07:20 AM
Adding code to application's core files will get overwritten each time we export the project, right?
Title: Re: Add PACE.js (Automatic page load progress bar) to PHPRad
Post by: willvin on July 19, 2022, 09:51:36 PM
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.