It helps the end user experience if you want to have some javascript run after the DOM is loaded but not wait until all the 3rd party scripts have loaded and run. Maybe the javascript runs some sort of animation.
Without this code, the animation would wait until facebook, google + and twitter are all loaded, but with this code, the animation would start right away.