Speed up start time
This commit is contained in:
@@ -14,7 +14,6 @@ declare var window: any
|
||||
|
||||
interface Props {
|
||||
autoExpandLimit: number
|
||||
didSelectNode?: (node: q.TreeNode) => void
|
||||
connectionId?: string
|
||||
tree?: q.Tree
|
||||
filter: string
|
||||
|
||||
@@ -30,11 +30,13 @@ const theme = createMuiTheme({
|
||||
typography: { useNextVariants: true },
|
||||
})
|
||||
|
||||
const splash = document.getElementById('splash')
|
||||
if (splash) {
|
||||
splash.style.animation = 'unsplash 1s ease-out 0s 1 normal forwards'
|
||||
setTimeout(() => splash.remove(), 1100)
|
||||
}
|
||||
setTimeout(() => {
|
||||
const splash = document.getElementById('splash')
|
||||
if (splash) {
|
||||
splash.style.animation = 'unsplash 0.5s ease-in 0s 1 normal forwards'
|
||||
setTimeout(() => splash.remove(), 600)
|
||||
}
|
||||
}, 300)
|
||||
|
||||
ReactDOM.render(
|
||||
<MuiThemeProvider theme={theme}>
|
||||
|
||||
Reference in New Issue
Block a user