Run background script after DOM is parsed

This allows us to leverage the existing loading screen for messaging without
having to explicitly wait for DOM load event.
This commit is contained in:
Daniel Gasienica 2018-03-22 11:30:00 -04:00
parent d35e365507
commit fb4445cbd6
1 changed files with 2 additions and 1 deletions

View File

@ -951,7 +951,6 @@
<script type='text/javascript' src='js/wall_clock_listener.js'></script>
<script type='text/javascript' src='js/rotate_signed_prekey_listener.js'></script>
<script type='text/javascript' src='js/keychange_listener.js'></script>
<script type='text/javascript' src='js/background.js'></script>
</head>
<body>
<div class='app-loading-screen'>
@ -965,5 +964,7 @@
<div class='message'>Loading...</div>
</div>
</div>
<script type='text/javascript' src='js/background.js'></script>
</body>
</html>