# Webview content and Loader stuck until scrolling on theme change (IntelliJ 2025.1 & 2025.2)

**URL:** <https://platform.jetbrains.com/t/webview-content-and-loader-stuck-until-scrolling-on-theme-change-intellij-2025-1-2025-2/2593>\
**Category:** IntelliJ Platform\
**Tags:** plugin-development\
**Created:** [August 21, 2025, 10:24am UTC](https://platform.jetbrains.com/t/webview-content-and-loader-stuck-until-scrolling-on-theme-change-intellij-2025-1-2025-2/2593 "2025-08-21T10:24:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineethspph](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/vineethspph/32/1059_2.png) [@vineethspph](https://platform.jetbrains.com/u/vineethspph)\
**Post date:** [August 21, 2025, 10:24am UTC](https://platform.jetbrains.com/t/webview-content-and-loader-stuck-until-scrolling-on-theme-change-intellij-2025-1-2025-2/2593/1 "2025-08-21T10:24:57Z")

</div>

**Description:**  
Our plugin displays a **webview (`JBCefBrowser`) inside the editor tab**.  
In IntelliJ 2025.1 and 2025.2 we’ve observed repaint issues:

1. **Theme Change Issue**

2. **Loader Issue**

Both issues disappear after scrolling, which indicates a **repaint invalidation problem**.  
Neither issue is reproducible in **IntelliJ 2024.x**.

**Steps to Reproduce:**

1. Install the plugin that displays a webview in the editor.

2. Open the webview tab.

3. Perform one of the following:

4. Observe:

**Expected Behavior:**

- Webview content should update immediately when the IDE theme changes.

- Loader should hide automatically once the action is complete.

**Actual Behavior:**

- Theme update and loader hiding both only occur after user interaction (e.g., scrolling).

**Environment:**

- IntelliJ IDEA 2025.1, 2025.2 → Reproducible

- IntelliJ IDEA 2024.x → Not reproducible

- JDK: [21]

- OS: [Windows/macOS]

**Notes :**

- Appears to be a **repaint invalidation issue** with JCEF integration in IntelliJ 2025.x.
