I have a single page application which loads a minified javascript file as well as a stylesheet. While doing so, I want to display a progress bar.
Is it possible to get the file sizes and calculate the value for my progress bar? Or is there another way to do so?
<link rel="stylesheet" href="myPath/myStyles.css" type="text/css">
<script type="text/javascript" src="myPath/myScript.js"></script>