I would like to know if the function $(window).on('load', function() { ... }
in preload-min.js
takes in consideration all the code in the index.html
and main-min.js
before triggering.
index.html
<html>
<body>
... html code ...
<script src="dist/main-min.js"></script>
<script src="dist/preloader-min.js" charset="utf-8"></script>
</body>
</html>
main-min.js
$(document).ready(function() {
... js code ...
})
preload-min.js
$(document).ready(function() {
$(window).on('load', function() {
... js code ...
});
})