Notification texts go here Contact Us Buy Now!

How to add a Sticky top page loading progress bar using JS and CSS

Mahmudul Hasan
Page loading progress bar thumbnail

Hello everyone, Welcome to Teorzo, You might looking for a tutorial that helps you to implement a page loading progress bar on your website, nowadays it has been seen on several websites and you might be want to implement it on your website then this tutorial is for you. We are using the Pase GitHub project to implement it on our website. So without wasting much time let's check how to implement it.

How to implement a Sticky top page loading progress bar?


Before following these steps we recommend you take a backup of your Blogger template, By chance if any mistakes have been done we can undo changes using that backup.


  • First of all, go to your Blogger dashboard
  • Then click on the Theme option from Sidebar.
  • Then click on the drop-down icon near Customize option on that window.
  • Then click on the Edit HTML option from the drop-down menu.
  • Then Find ]]></b:skin> and paste the following CSS just above it or you can paste the following CSS just above </head> by creating <style></style> tags.

  • /* Pace | github.com/CodeByZach/pace */.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:blue;position:fixed;z-index:2000;top:0;right:100%;width:100%;height:2px}

  • Now you need to find close </body> tag and paste the following CDN script just above it

  • <script async='true' src='https://cdn.jsdelivr.net/npm/pace-js@latest/pace.min.js'/>

  • Now click on Save icon to Save HTML

  • Conclusion

    Hope this tutorial will help you to add sticky-top page loading progress bar in your website. If it is useful to you, please share with your friends, If you have any doubts related to this tutorial ask me I. Comment. Thanks for visiting, Hava a nice day!



    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.