Skip to content

Commit eaf41fc

Browse files
Prvent flickering contents
1 parent 0e8fdef commit eaf41fc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/player/modules/InterfaceModal/module.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ FrameTrail.defineModule('InterfaceModal', function(FrameTrail){
2828
$(FrameTrail.getState('target')).append(loadingScreen);
2929
$(FrameTrail.getState('target')).append(statusMessage);
3030

31+
// Show immediately so no app content is visible before the loading screen covers it.
32+
// jQuery's fadeIn() is a no-op on an already-visible element, so showLoadingScreen()
33+
// still works correctly for subsequent calls (after hideLoadingScreen() hides it).
34+
loadingScreen.show().addClass('active');
35+
3136

3237

3338
/**

0 commit comments

Comments
 (0)