# Lag in selecting text

**URL:** <https://meta.discourse.org/t/lag-in-selecting-text/216062>\
**Category:** Bug\
**Created:** [January 26, 2022, 11:13am UTC](https://meta.discourse.org/t/lag-in-selecting-text/216062 "2022-01-26T11:13:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [January 26, 2022, 3:26pm UTC](https://meta.discourse.org/t/lag-in-selecting-text/216062/2 "2022-01-26T15:26:10Z")

</div>

I can repro the lag.

Looks like we call `toMarkdown` on the whole post. That post is almost 100k chars long, so it takes quite a while.

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/quote-button.js#L167](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/quote-button.js#L167)

Maybe we can call the server to obtain the markdown here after a certain threshold ?

---

_[View the full topic](https://meta.discourse.org/t/lag-in-selecting-text/216062)._
