Join Our Telegram Channel Join Here!

How add Loading Progress Bar on your Website using JavaScript

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

Loading Progress Bar for your Blogger Website and other any websites to work.

How add Loading Progress Bar on your Website using JavaScript
© Emadul.Xyz Design | Loading progress

Let's Install Progress Bar.

Important!Before we start adding codes in XML, I will recommend you to take a Backup of your current theme. By chance if any problem occurs, you can restore it later.

Step 1: First of all Login to your Blogger Dashboard.

Step 2: On Blogger Dashboard, click Theme.

Step 3: Click the arrow down icon next to 'customize' button.

Step 4: Click Edit HTML, you will be redirected to editing page.

If your template has a dark mode feature, and if you want a different color when in dark mode, you can customise the codes as per your need. Each template can have a different dark mode class, so please adjust it, you can replace the marked class with your template dark mode class.

/* pace.js v1.2.4 */ .pace{-webkit-pointer-events:none;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none} .pace-inactive{display:none} .pace .pace-progress{background:#ff0000;position:fixed;z-index:500;top:0;right:100%;width:100%;height:2px}

Step 5: Now search the code ]]></b:skin> and paste the following CSS Codes just above to it.

Step 6: Now add the following JavaScript Code just above to </head> tag. If you don't find it, it is probably already parsed which is &lt;/head&gt;.

<!--[ Progress JavaScript ]-->
<script src='https://cdn.jsdelivr.net/npm/pace-js@latest/pace.min.js'/>

Lazy Progress

Important!Here are two JavaScript codes you can use any one of them for your website. JavaScript Lazyload Code is given below. That will increase the performance of your website.

<!--[ Progress JavaScript (Defer.js / Lazyload) ]-->
<script>/*<![CDATA[*/ Defer.js('https://cdn.jsdelivr.net/npm/pace-js@latest/pace.min.js', 10); /*]]>*/</script>

Step 7: Save the changes by clicking on this icon

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.