Use load event instead of DOMContentLoaded

Using DOMContentLoaded is firing right after the DOM
has finished parsing. This means that document.readyState
does not have to be complete/loaded.
Using load ensures that we will still receive an event.

Change-Id: Ib9ebb5768436533b3b05fb2bd644f2370313e8bc
2 files changed