From 25d45897c02554f0ae6ffb39bd8cc08a6f30cbbe Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 7 Oct 2022 00:05:51 +0100 Subject: [PATCH] [Beta] Prefetch CodeBlock (#5159) --- beta/src/components/Layout/MarkdownPage.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beta/src/components/Layout/MarkdownPage.tsx b/beta/src/components/Layout/MarkdownPage.tsx index 1c9750cf..99e3cea1 100644 --- a/beta/src/components/Layout/MarkdownPage.tsx +++ b/beta/src/components/Layout/MarkdownPage.tsx @@ -9,6 +9,8 @@ import PageHeading from 'components/PageHeading'; import {useRouteMeta} from './useRouteMeta'; import {TocContext} from '../MDX/TocContext'; +import(/* webpackPrefetch: true */ '../MDX/CodeBlock/CodeBlock'); + export interface MarkdownProps { meta: Frontmatter & {description?: string}; children?: React.ReactNode;