Add `APP_INITIALIZED` event before hideLoader in initialization sequence, before `APP_READY` fires (#5051) * Add APP_INIT event before hideLoader in initialization sequence * refactor(events): rename APP_INIT to APP_INITIALIZED --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>

f3c886fd120558d702734e56e715937f8c2b191d

Wolfsblvt <wolfsblvt@gmail.com>

Signed
2 files changed, +2 -0Showing whitespace changes
public/script.js+1 -0
@@ -730,6 +730,7 @@ async function firstLoadInit() {
730730 initAccessibility();
731731 addDebugFunctions();
732732 doDailyExtensionUpdatesCheck();
733+ await eventSource.emit(event_types.APP_INITIALIZED);
733734 await hideLoader();
734735 await fixViewport();
735736 await eventSource.emit(event_types.APP_READY);
public/scripts/events.js+1 -0
@@ -1,6 +1,7 @@
11import { EventEmitter } from '../lib/eventemitter.js';
22
33export const event_types = {
4+ APP_INITIALIZED: 'app_initialized',
45 APP_READY: 'app_ready',
56 EXTRAS_CONNECTED: 'extras_connected',
67 MESSAGE_SWIPED: 'message_swiped',