mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	ready: Wait for other ready callbacks before marking app loaded.
This is needed not because the DOM isn’t ready here (we’re in a <script defer>), but because we want to wait an asynchronous tick until after all the other callbacks that waited an asynchronous tick for the DOM to be ready. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							e42354c917
						
					
				
				
					commit
					32df287818
				
			@@ -1,3 +1,5 @@
 | 
			
		||||
import $ from "jquery";
 | 
			
		||||
 | 
			
		||||
$("#app-loading").addClass("loaded");
 | 
			
		||||
$(() => {
 | 
			
		||||
    $("#app-loading").addClass("loaded");
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user