# OT does not work properly

**URL:** <https://discuss.prosemirror.net/t/ot-does-not-work-properly/391>\
**Category:** Uncategorized\
**Created:** [August 23, 2016, 11:00pm UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391 "2016-08-23T23:00:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kofifus](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/kofifus/32/288_2.png) [@kofifus](https://discuss.prosemirror.net/u/kofifus)\
**Post date:** [August 23, 2016, 11:00pm UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/1 "2016-08-23T23:00:21Z")

</div>

opening [https://prosemirror.net/demo/collab.html#edit-Example](https://prosemirror.net/demo/collab.html#edit-Example) in two chrome tabs and making changes in the second one, it seems they do not appear in the first one.

At first I thought it’s a matter of delay but it seems even if I wait quite a bit the first one does not update.

If I switch to the second one and make more changes the first changes then appear in the first one.

How can I make changes appear immediately ?

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [August 24, 2016, 8:47am UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/2 "2016-08-24T08:47:10Z")

</div>

Works for me. Any errors in your devtools?

Also, OT is not a synonym for collaborative editing. ProseMirror’s implementation has nothing to do with operational transform.

---

<div class="post-metadata">

**Author:** ![kofifus](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/kofifus/32/288_2.png) [@kofifus](https://discuss.prosemirror.net/u/kofifus)\
**Post date:** [August 24, 2016, 10:47am UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/3 "2016-08-24T10:47:00Z")

</div>

no, no errors in the console

I just tried again now, opened two tabs, typed ‘hello’ in one of them and switched to the other, after a second or so it showed ‘hell’ so missing the final letter, it’s still missing now ~5 min after. If I keep switching between the two tabs I see ‘hello’ in one and ‘hell’ in hte other with the console empty on both.

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [August 24, 2016, 11:13am UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/4 "2016-08-24T11:13:03Z")

</div>

Which browser are you using?

---

<div class="post-metadata">

**Author:** ![kofifus](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/kofifus/32/288_2.png) [@kofifus](https://discuss.prosemirror.net/u/kofifus)\
**Post date:** [August 24, 2016, 11:28am UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/5 "2016-08-24T11:28:55Z")

</div>

chrome 52.0.2743.116

(windows 7)

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [August 24, 2016, 12:25pm UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/6 "2016-08-24T12:25:17Z")

</div>

I’ve been testing with Chrome, and not seeing any problems. Anyone else reading this thread who can confirm what they are seeing?

---

<div class="post-metadata">

**Author:** ![Greg](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@Greg](https://discuss.prosemirror.net/u/Greg)\
**Post date:** [August 24, 2016, 6:39pm UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/7 "2016-08-24T18:39:10Z")

</div>

I just tested collaborative editing using two Chrome (v.52.0.2743.116) tabs on Mac. I also opened Safari for good measure. I was able to reproduce the problem of ‘hello’ in the Chrome input browser but only ‘hell’ in the other Chrome and Safari browser if I typed ‘hello’ quickly. Upon resumption of typing (e.g. adding a space) that last ‘o’ and the space appeared in Chrome and Safari. When I typed ‘hello’ slowly it would appear correctly in all browsers.

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [August 24, 2016, 9:14pm UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/8 "2016-08-24T21:14:50Z")

</div>

Seems to be a timing issue. I was able to sporadically reproduce this when I typed really fast. Will look into it. (Note that the bug is in the demo’s implementation, not in ProseMirror’s algorithm.)

---

<div class="post-metadata">

**Author:** ![kiejo](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/kiejo/32/64_2.png) [@kiejo](https://discuss.prosemirror.net/u/kiejo)\
**Post date:** [August 25, 2016, 6:46am UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/9 "2016-08-25T06:46:57Z")

</div>

This sounds like it could be one of the edge cases I described in [How to handle edge case with collab module](https://discuss.prosemirror.net/t/how-to-handle-edge-case-with-collab-module/288/27).

---

<div class="post-metadata">

**Author:** ![kofifus](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/kofifus/32/288_2.png) [@kofifus](https://discuss.prosemirror.net/u/kofifus)\
**Post date:** [August 25, 2016, 10:48pm UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/10 "2016-08-25T22:48:20Z")

</div>

doesn’t sound like an edge case if it happens to me on almost every type …

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [October 13, 2016, 7:25pm UTC](https://discuss.prosemirror.net/t/ot-does-not-work-properly/391/11 "2016-10-13T19:25:14Z")

</div>

The problem seems to be gone in the cleaned-up implementation of the demo released with 0.11.0.
