Finally I figured one way which almost gives solution to the problem.
Write a onload
attribute inside the assets which you are loading and call a javascript method. Inside the javascript method we can display the assets which are being loaded currently(with the animation).
Below i have loaded the javascript from CDN link and while it's getting loaded it can be printed on the page along with animation.
<body>
<div id='myDIV' class="loader"> </div>
<div id='message'>
<ul id="asset">
</ul>
<script onload="myFunction('jquery loaded...')" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script onload="myFunction('angular js loaded...')"src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
<script onload="myFunction('bootstrap js loaded')"type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
And the JavaScript function can be
function myFunction(ele) {
var node = document.createElement("LI");
var textnode = document.createTextNode(ele);
node.appendChild(textnode);
document.getElementById("asset").appendChild(node);
}
Similarly we can print what is being loaded while downloading the images, css files, fonts etc.