Skip to content

Commit

Permalink
[docs] Improve loading experience
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Mar 5, 2020
1 parent daa0eff commit 5536f6e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/src/modules/components/AppFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function AppFrame(props) {
<ExpandMoreIcon fontSize="small" />
</Button>
</Tooltip>
<NoSsr>
<NoSsr defer>
<Menu
id="language-menu"
anchorEl={languageMenu}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ function Demo(props) {
<div className={classes.anchorLink} id={`${demoName}.tsx`} />
{demoOptions.hideHeader ? null : (
<div className={classes.header}>
<NoSsr>
<NoSsr defer>
<DemoLanguages
demo={demo}
codeOpen={codeOpen}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/DemoSandboxed.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function DemoFrame(props) {

// NoSsr fixes a strange concurrency issue with iframe and quick React mount/unmount
return (
<NoSsr>
<NoSsr defer>
<Frame
ref={handleRef}
className={classes.frame}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/HomeQuickWord.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function HomeQuickWord(props) {
return (
<div className={classes.root}>
<Typography variant="caption">{t('homeQuickWord')}</Typography>
<NoSsr>
<NoSsr defer>
<Link
variant="body2"
display="block"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/HomeQuotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function HomeQuotes() {

return (
<div className={classes.root}>
<NoSsr>
<NoSsr defer>
<Container maxWidth="md" className={classes.container} disableGutters>
<Divider />
<div className={classes.users}>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/HomeSponsors.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function HomeSponsors(props) {

return (
<div className={classes.root}>
<NoSsr>
<NoSsr defer>
<Container maxWidth="md">
<Divider />
<MarkdownElement className={classes.markdownElement} text={backers[userLanguage]} />
Expand Down
4 changes: 2 additions & 2 deletions docs/src/modules/components/HomeThemes.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function HomeThemes(props) {

return (
<div className={classes.root}>
<NoSsr>
<NoSsr defer>
<Container maxWidth="md">
<Typography variant="h4" component="h2" align="center" gutterBottom>
{t('themes')}
Expand All @@ -67,7 +67,7 @@ function HomeThemes(props) {
data-ga-event-label="home-image"
className={classes.link}
>
<NoSsr>
<NoSsr defer>
<img
className={classes.img}
alt={t('themesButton')}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/HomeUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function HomeUsers(props) {

return (
<div className={classes.root}>
<NoSsr>
<NoSsr defer>
<Container maxWidth="md" className={classes.container} disableGutters>
<Divider />
<div className={classes.users}>
Expand Down

0 comments on commit 5536f6e

Please sign in to comment.