← Back to context

Comment by porridgeraisin

11 hours ago

the damn chat.openai.com webapp lags a lot as well on long chats, typing takes so long.

I believe this is because they don’t lazyload the document.

The entire conversation sits in the DOM.

  • Yeah - is such a large dom of essentially text expected to be that slow?

    For what it's worth I use a small script that essentially deletes old chat messages DOM nodes which significantly speeds it up.

In my experience the input field lags on short chats too, sometimes in the middle of writing the second or third prompt. Are they running some kind of prospective evaluation or something?

  • When you are writing completely new prompt - it sends every character to server when writing and tries to make suggestions based on that.

    And keeps doing it in intervals in /prepare endpoint, during each prompt.

    So if you are working with something sensitive - don't write it to browser directly and edit it there.