title: JavaScript - Copy HUGE string to clipboard
body: <p>I'm developing a grid and now I'm trying to copy information from the grid to Excel. Everything works as expected, but if the data is too big, the copy process takes a long time.</p>
  
  <p>I'm using the textarea trick, with "document.execCommand("copy")".</p>
  
  <p>I could see that my problem is here "textarea.select();"
  Pasting the text in the textarea is very fast, but it takes a looooong time to select all the text. After that is also quick to send to the clipboard.
  The problem seems to be the select.</p>
  
  <p>I'm talking about copying arrays like [500000, 40]. A lot of data.</p>
  
  <p>I've tried some Chrome API, but couldn't find any good solution by the end.
  Is there any other clever way to copy data to the clipboard?</p>