GitHub user dosubot[bot] added a comment to the discussion: Could the superset 
logo that appears during loading charts, be removed while embedding the 
dashboard in another applcation....

<!-- Answer -->
Yes, you can remove or customize the Superset logo that appears during chart 
loading when embedding dashboards.

If you want to simply replace the loading spinner/logo, set the brandSpinnerUrl 
option in THEME_DEFAULT in your config.py to a blank image or your own loader. 
This doesn't require rebuilding frontend assets and will swap out the default 
logo everywhere the spinner appears, including embedded dashboards. See details 
in the [recent pull request](https://github.com/apache/superset/pull/36951).

If you want to completely remove the loading spinner/logo (not just replace the 
image), you’ll need to modify the frontend code. In 
superset-frontend/src/embedded/index.tsx, the embedded dashboard uses a React 
Suspense fallback with the <Loading /> component, which displays the loading UI 
(including the logo). You can replace <Loading /> with your own component or 
with null to hide the loading spinner entirely. See the relevant code 
[here](https://github.com/apache/superset/blob/master/superset-frontend/src/embedded/index.tsx).

Keep in mind that removing the loading spinner means users won’t see any 
loading indicator, which could impact user experience if charts take a while to 
load. If you want to keep a loading indicator but without branding, consider 
using a neutral or blank image instead.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/632328a5-49a1-4890-bf4d-a4c6727520fb?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/632328a5-49a1-4890-bf4d-a4c6727520fb?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/632328a5-49a1-4890-bf4d-a4c6727520fb?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/632328a5-49a1-4890-bf4d-a4c6727520fb?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/632328a5-49a1-4890-bf4d-a4c6727520fb?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/632328a5-49a1-4890-bf4d-a4c6727520fb?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/632328a5-49a1-4890-bf4d-a4c6727520fb?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Yes%2C%20you%20can%20remove%20or%20customize%20the%20Superset%20logo%20that%20appears%20during%20chart%20loading%20when%20embedding%20dashboards.%0A%0AIf%20you%20want%20to%20simply%20replace%20the%20loading%20spinner/logo%2C%20set%20the%20brandSpinnerUrl%20option%20in%20THEME_DEFAULT%20in%20your%20config.py%20to%20a%20blank%20image%20or%20your%20own%20loader.%20This%20doesn%27t%20require%20rebuilding%20frontend%20assets%20and%20will%20swap%20out%20the%20default%20logo%20everywhere%20the%20spinner%20appears%2C%20including%20embedded%20dashboards.%20See%20details%20in%20the%20%5Brecent%20pull%20request%5D%28https%3A//github.com/apache/superset/pull/36951%29.%0A%0AIf%20you%20want%20to%20completely%20remove%20the%20loading%20spinner/logo%20%28not%20just%2
 
0replace%20the%20image%29%2C%20you%E2%80%99ll%20need%20to%20modify%20the%20frontend%20code.%20In%20superset-frontend/src/embedded/index.tsx%2C%20the%20embedded%20dashboard%20uses%20a%20React%20Suspense%20fallback%20with%20the%20%3CLoading%20/%3E%20component%2C%20which%20displays%20the%20loading%20UI%20%28including%20the%20logo%29.%20You%20can%20replace%20%3CLoading%20/%3E%20with%20your%20own%20component%20or%20with%20null%20to%20hide%20the%20loading%20spinner%20entirely.%20See%20the%20relevant%20code%20%5Bhere%5D%28https%3A//github.com/apache/superset/blob/master/superset-frontend/src/embedded/index.tsx%29.%0A%0AKeep%20in%20mind%20that%20removing%20the%20loading%20spinner%20means%20users%20won%E2%80%99t%20see%20any%20loading%20indicator%2C%20which%20could%20impact%20user%20experience%20if%20charts%20take%20a%20while%20to%20load.%20If%20you%20want%20to%20keep%20a%20loading%20indicator%20but%20without%20branding%2C%20consider%20using%20a%20neutral%20or%20blank%20image%20instead.)&nbsp
 ;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37654)

GitHub link: 
https://github.com/apache/superset/discussions/37654#discussioncomment-15690509

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to