Graph paper_bgcolor and plot_bgcolor delay loading

Hi,
I want to change paper and plot bg color, it change but when loading it’s showing delay
My code:

figure = {‘data’: data,
‘layout’: go.Layout(
colorway=["#ffffff", ‘#FF4F00’, ‘#375CB1’, ‘#FF7400’, ‘#FFF400’, ‘#FF0056’],
height=450,
title=f"Opening and Closing Prices for {’, '.join(str(dropdown[i]) for i in selected_dropdown_value)} Over Time",
paper_bgcolor=‘rgba(0,0,0, 0)’,
plot_bgcolor=‘rgba(0,0,0, 0)’,
xaxis={ ‘showgrid’ : False,
‘showticklabels’: False,
‘rangeslider’: {‘visible’: False},
‘type’: ‘date’,
‘rangeselector’: {‘buttons’: list([{‘count’: 1, ‘label’: ‘● LIVE’, ‘step’: ‘hour’, ‘stepmode’: ‘backward’},
{‘count’: 1, ‘label’: ‘1D’, ‘step’: ‘day’, ‘stepmode’: ‘backward’},
{‘count’: 7, ‘label’: ‘1W’, ‘step’: ‘day’, ‘stepmode’: ‘backward’},
{‘count’: 1, ‘label’: ‘1M’, ‘step’: ‘month’, ‘stepmode’: ‘backward’},
{‘count’: 3, ‘label’: ‘3M’, ‘step’: ‘month’, ‘stepmode’: ‘backward’},
{‘count’: 1, ‘label’: ‘1Y’, ‘step’: ‘year’, ‘stepmode’: ‘backward’},
{‘count’: 5, ‘label’: ‘5Y’, ‘step’: ‘year’, ‘stepmode’: ‘backward’},
])}},

                yaxis={'showgrid' : False, 'showticklabels': False,},
                )}
return figure