PablocFonseca / streamlit-aggrid

Implementation of Ag-Grid component for Streamlit
https://pypi.org/project/streamlit-aggrid/
MIT License
991 stars 191 forks source link

Update index.html #196

Closed dectoplate closed 1 year ago

dectoplate commented 1 year ago

This solves the problem of an eventual white page been displayed for a short moment (milliseconds) in slow computers (or sufficient slow rendering for some reason), which can be noticeable when using a dark theme.

What it does is to set the body background color to 'transparent' (while the default is 'white'), which is the color used by the browser before it applies the CSS... I know it's hard to simulate this issue, but trust me, it happens. =) It's also good practice to use transparent body background when the component (the page in the iframe) is guarantee to override that with CSS.