Long conversation cause the page being very slow, 18k JS executions plus 2M DOM nodes after the page is loaded(the screenshot on reply)

Previously on:

The webpage is super slow after reach 220000 tokens, found many of “CountTokens” on Chrome dev tools

After I am temporarily done with that ~650 CountTokens by ublock, the long conversation page is still pretty slow. Especially if I click the rerun or run button, the page is going to freeze for ~20 seconds.

I was trying to figure out what happened on Chrome dev tools, that shows a great amount of JS code executed while the page is loading, then I installed the [Luminous: JavaScript events blocker] Chrome extension to check what is going on. The result is:

(After the page is fully loaded)

Compared with the old context window, the new context window is with ~3k JS executions only.
The old context window with far more JS events, such as “setInterval”, etc.
I don’t think I can handle this, but I found out in an old post here that someone complained about a similar issue before. Logan_Kilpatrick offered some help on there…

To Logan Kilpatrick, hello? Are you here? Do you read this?

Many reddit posts complained about this issue also:

www.reddit.com/r/Bard/comments/1hw6qx4/google_ai_studio_is_amazing_but_anyone_else/?rdt=61515

https://www.reddit.com/r/Bard/comments/1j2kh4z/google_ai_studio_really_slow_with_long/?sort=top

I found out there are 2milions of DOM nodes as well. (I turned off the ublock)

Similar with:

(Opps…I forgot to @…)
@Logan_Kilpatrick Please read the first post of the thread and reply.

Same issues. Typing slowness slightly improved when using firefox, but not completely resolved.

Fix for Slow Typing in AI Studio (Chrome on PC)

If you experience slow typing or lag in AI Studio while using Google Chrome on a PC, try this potential fix:

  1. Open Chrome Flags: Type chrome://flags/ into your Chrome address bar and press Enter.
  2. Search: In the search box on the flags page, type Overlay scrollbars.
  3. Enable: Find the “Overlay scrollbars” flag and change its setting from “Default” or “Disabled” to Enabled.
  4. Relaunch: Click the “Relaunch” button that appears at the bottom of the page to restart Chrome.
  5. Test: Check if AI Studio performs better.

Note: This uses an experimental Chrome feature. It might not work for everyone and could potentially cause other minor display issues. If you encounter problems, you can revert the change by setting “Overlay scrollbars” back to “Default” in chrome://flags/ and relaunching again.

This did not fix the issue, unfortunately. It is even slower.

Could the lag be a feature? The DOM bloat creates friction specifically in AI Studio, maybe nudging casual users away from massive prompts there.

I found this setting helped with new chats created after disabling both the overlay settings, but the old chats have stayed a laggy mess