I found an answer to stop dark.js from loading the page, and here I am posting this to other users.
Here the js code calls.
<script data-pace-options='{ "elements": { "selectors": [".selector"] }, "startOnPageLoad": false }' src="js/pace/pace.min.js"></script>
In this, I configure the step to the specified selector, and the other startOnPageLoad parameter is set to false to avoid loading rates at each page load.
And here's another question on how to help.
Using pace.js when uploading added images
webtuts4u
source share