<script type="text/javascript">document.addEventListener("DOMContentLoaded", function(event) {/*- Code to execute when only the HTML document is loaded.- This doesn't wait for stylesheets,images, and subframes to finish loading.*/});</script>
Update March 2017
1 Vanilla JavaScript
window.addEventListener('load', function() {console.log('All assets are loaded')})
2 jQuery
$(window).on('load', function() {console.log('All assets are loaded')})