forked from lavender/watch-party
		
	actually fix perf
This commit is contained in:
		
							parent
							
								
									98e1393441
								
							
						
					
					
						commit
						ae87f2abe0
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -57,10 +57,10 @@ const setupChatboxEvents = (socket) => { | ||||||
|     }; |     }; | ||||||
|     let results = await findEmojis(search); |     let results = await findEmojis(search); | ||||||
|     let yieldAt = performance.now() + 13; |     let yieldAt = performance.now() + 13; | ||||||
|     for (let i = 0; i < results.length; i += 10) { |     for (let i = 0; i < results.length; i += 100) { | ||||||
|       emojiAutocomplete.append.apply( |       emojiAutocomplete.append.apply( | ||||||
|         emojiAutocomplete, |         emojiAutocomplete, | ||||||
|         results.slice(i, i + 1000).map(([name, replaceWith, ext], i) => { |         results.slice(i, i + 100).map(([name, replaceWith, ext], i) => { | ||||||
|           const button = Object.assign(document.createElement("button"), { |           const button = Object.assign(document.createElement("button"), { | ||||||
|             className: "emoji-option", |             className: "emoji-option", | ||||||
|             onmousedown: (e) => e.preventDefault(), |             onmousedown: (e) => e.preventDefault(), | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue