gdpelican / retort

A reactions plugin for Discourse
MIT License
57 stars 39 forks source link

Long delay between clicking emoji and it showing up. #67

Closed Johannestegner closed 3 years ago

Johannestegner commented 4 years ago

Hi!

The time it takes between when a user clicks the emoji in the picker and until it shows up (to the user) is really long. From what I gather from the code, the insertion in the DOM awaits response from the server and the response is depending on the polling time. This makes the delay span up to 3-4 seconds in some cases!

A nice "fix" to this issue could be that the client side code adds the emoji right away, then "corrects" it in case the server answers with another response than the expected value, cause as of right now, from the users perspective, it seems like we have a huge issue with delay on the forum.