1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Redactor responding slowly to typed text

Discussion in 'Troubleshooting and Problems' started by Harpers Tate, Mar 4, 2015.

  1. Harpers Tate

    Harpers Tate Well-Known Member

    I considered necrobumping these two threads
    but wanted to make it clear this is about XF v 1.4.5

    Some members have reported seeing lag. I experience it as well, but only visibly on my cheaper, slower machine that I use when travelling; not on my more usual i5 box.

    So I set out to do some testing, using my lower spec laptop.
    Browser is Waterfox 35.0; OS is Windows 8.1u1 64bit.
    This is what I found:

    1: I can detect lag when using AVForums. I can also detect lag when using this (XenForo) forum, but it is harder to detect (less severe).
    2: I disabled each AVF add-on, tested for lag, and then re-enabled the add-on one at a time. No one add-on had a discernible effect. I did not disable multiple add-ons at any time.
    3: The length of the thread in which the post is being attempted seems highly material. I could not detect lag when posting at AVF a reply to a thread with one other post. It was severe when posting a reply to a thread with over 60 other posts (a few pages long).
    4: Different style templates at AVForums had no detectable effect; one style under development (the content/details of which I know nothing about) did appear perhaps to slow things further.
    5: Switching to the BBCode editor removes the lag completely.
    6: I monitored my task manager screen with one eye whilst watching my typing with the other! Total CPU was hovering around 4-6% with Waterfox hovering around 2%. As soon as I start typing, Waterfox hits around 17% until the text is placed in the input field, and then drops again.

    At this point, I'm not really sure whether I am reporting a bug or asking for help to resolve an issue. Either way, some users are claiming the site to be unattractive to use, and I can see why.

    Grateful for any insight or help.


    Description of the issue and some personal guessed attempts at conclusions (the latter more to assist with the description than anything else):

    In a post reply input field, type fairly quickly. Nothing appears on the screen until you pause typing, and then after 1/2 second or so - a brief but noticeable pause - your keystrokes appear, often in one action, but sometimes in more than one distinct action.

    It's as if the keyboard buffer is only EITHER accumulating OR depositing (and never both).
    And it waits for a gap in the input before it outputs.

    It's the length of that gap that appears to vary - which means you end up with more or less buffered keystrokes before they appear. If the gap is very short, then each keystroke will appear almost right away; so the problem is not detectable. If the gap is long, one can easily type 20 characters before anything appears on screen.

    The length of the gap (and hence the severity of the issue) seems to be affected primarily by the speed of the machine and/or other concurrent demands being placed on it - whether by the website itself or (presumably) other applications.

    - My i5 machine never visibly exhibits this (CPU benchmark score 3121; Win7). My much slower AMD1450 machine exhibits this (CPU benchmark score 1624; Win8.1u1). Conclusion: Machine speed is material
    - It's consistently very noticeable at AVForums and much less so at XenForo. Conclusion: AVF is likely to be more script-heavy due to design and add-ons than XF. Suggests that demand on the machine/browser is material.
    - The length of the thread has an effect. Suggests there is something about page content and/or user details panels that is adding to demand on the machine. Perhaps something like the on-line indication for each poster as an example/illustration.
    - The BBCode editor cannot be made to exhibit this symptom. Conclusion: This is an artefact of Redactor specifically.
    karll, teletubbi, ge66 and 2 others like this.
  2. Xon

    Xon Well-Known Member

    This happens to me on XF.com in IE11 quite often.

    2-3 nested [list], with maybe a dozen points appear to trigger this very easily.
  3. ge66

    ge66 Active Member

    I also have users complain about this, but haven't seen it myself.
  4. Arno Nühm

    Arno Nühm Active Member

  5. okhello

    okhello Member

    I'm also hearing many complaints about this issue from users. Did any of you guys find a fix for this?
  6. Stuart Wright

    Stuart Wright Well-Known Member

    We didn't.
  7. okhello

    okhello Member

    @Stuart Wright @Harpers Tate It seems to be more of a problem for us on longer threads... when there are only a few posts it seems to move pretty quick. Not sure if you've noticed anything similar. We're on 1.4.6.

    Did you guys test a redactor alternative like this TinyMCE Quattro add-on? https://xenforo.com/community/resources/tinymce-quattro-and-its-wysiwyg-bbcodes.1881/

    We only have ~10,000 MAUs and I'm dreading the backlash... we had a lot of issues with vBulletin, but nothing as widespread as laggy input. You guys have a much larger community... have members just learned to live with it?
  8. Harpers Tate

    Harpers Tate Well-Known Member

  9. eva2000

    eva2000 Well-Known Member

    @Harpers Tate is this only with Firefox/Waterfox browser ? Tried Chrome and Opera ?
  10. Xon

    Xon Well-Known Member

    Happens in Internet Explorer too.
    eva2000 likes this.
  11. Harpers Tate

    Harpers Tate Well-Known Member

    Yes - not tested it myself, but others who have reported the issue here and elsewhere have been on various platforms so I'm convinced it's not browser/Windows version related. (Can't speak with any authority about other OSs).
    Xon likes this.
  12. BobbyWibowo

    BobbyWibowo Well-Known Member

    I'm also having this issue just recently. I'm using UI.X on my board. The first few months we had UI.X on the board, there was no lag with Redactor. But recently, my users kinda noticed this issue after I've updated the board to 1.4.7.
    Also, I tried both Firefox and Chrome, same thing, it lags.

    I've tried disabling add-on that may interfere with the editor, same issue. I found this suspicious since I had no issue with the editor before. But I also kinda suspect UI.X though. I haven't updated the theme since 1.4.2 because now the theme requires an additional add-on, and also I fear that it'll be a pain to re-customize the theme since I've done a huge overhaul.
  13. karll

    karll Well-Known Member

    I have the same issue on Linux with a low-spec machine (Samsung NC10 - Intel Atom 1.6GHz). It's noticeable as I type this post here on XF.com, but worse on other sites such as TAZ. It's also worse when there is a lot of text in the other posts above the quick reply box. If I instead go to the full post reply box, then the problem is considerably less visible. If I use the BBCode editor, the problem goes away.

    On my own site I have installed TinyMCE Quattro (as an alternative editor), as mentioned above, and have had much success with that.

    Only a few of my users have complained. I think most of them have better computer specs than myself ...
  14. Chris D

    Chris D XenForo Developer Staff Member

    We have recently done some performance analysis of the rich text editor and Mike has added some optimisations to the code which have reduced the slow down in Opera. We are hoping they will have had an impact on other browsers/devices too.

    The changes have been rolled out here. Could you please try it out (feel free to use the Test Messages forum) and let us know if you have seen an improvement.
  15. karll

    karll Well-Known Member

    Haven't tested it extensively, but the testing I have done suggests the editor is behaving better. (Testing with Firefox.) Thank you, this was a much needed improvement for a few of us.
    Mike and Chris D like this.
  16. Xon

    Xon Well-Known Member

    The changes look to have fixed the performance issues I was experiencing when dealing with nested lists for IE11.
    Chris D and karll like this.
  17. PetForums

    PetForums Member

  18. Chris D

    Chris D XenForo Developer Staff Member

    Many releases ago.

    What version are you running?

    What devices are they using when experiencing slow typing?

Share This Page