
I built a userscript that fixes lag in long Google AI Studio conversations
Google AI Studio becomes noticeably slow when conversations get long, mainly due to DOM overload and large rendered message/code blocks.
I built a lightweight userscript to improve performance by optimizing how messages are rendered in the browser.
What it does:
- Limits the number of visible chat messages
- Caches older messages instead of constantly rendering them
- Automatically collapses code blocks
- Reduces DOM pressure during long sessions
- Adds a small control panel to adjust performance settings
Everything runs locally in the browser. No network requests, no tracking, and no modification of AI responses.
Why I made it:
I was working with long AI Studio sessions and noticed serious lag after extended use. Instead of switching to another AI, I tried optimizing Google IA Studio and it works !.
Links:
https://greasyfork.org/fr/scripts/578144-google-ai-studio-ultimate-optimizer-ui
https://github.com/Kfayyy/Google-AI-Studio-Optimizer
If anyone runs long sessions in AI Studio, feedback is welcome.
here comes the UI :