Closed ElMassimo closed 2 years ago
We didn't find any information for the current pull request with the commit 67686ce63d3ca7dc2a1018885ff347199fddcfb9. You might need to set the 'NX_BRANCH' environment variable in your CI pipeline.
Check the Nx Cloud Github Integration documentation for more information.
Sent with 💌 from NxCloud.
Latest commit: |
67686ce
|
Status: | ✅ Deploy successful! |
Preview URL: | https://f0ef5a7c.iles.pages.dev |
Description 📖
This pull request adds a rehype plugin to detect static content in MDX documents and hoist it, optimizing the rendering performance of the component.
The output will be deoptimized correctly when using element shortcodes.
Background 📜
Any static elements will be serialized to HTML, and will be hoisted into a
raw
element (which usescreateStaticVNode
).In most documents, this decreases the amount of vnodes dramatically.
The transformation is not slower, since converting the elements to
jsx
calls is slower or on par with stringifying to HTML.Example
From
posts/hello-2021.mdx
.Before
After