# Bug #10: NiiVue 3D Viewer Renders Black Screen on HF Spaces
## Status: PARTIALLY FIXED → See Bug #11
**Date:** 2025-12-09
**Branch:** `fix/niivue-js-on-load` (merged), now `fix/niivue-js-rerun`
**Discovered:** After fixing Bug #9 (DeepISLES subprocess bridge)
### Fix Applied (2025-12-09) - PARTIAL
Implemented `js_on_load` approach (Solution 1 from this spec):
1. **`viewer.py`**: Removed `
"""
# components.py:42 - Basic HTML component without js_on_load
niivue_viewer = gr.HTML(label="Interactive 3D Viewer") # No js_on_load!
```
### Why It Fails
1. `gr.HTML` receives our HTML string as `value`
2. Gradio renders the `
` and `