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.
I'm using the textarea trick, with "document.execCommand("copy")".
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.
I'm talking about copying arrays like [500000, 40]. A lot of data.
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?