Trigger initialization DOMContentLoaded instead of window.onload

This should reduce the window between loading and initialization.