hasServerDeferDirective() — astro Function Reference
Architecture documentation for the hasServerDeferDirective() function in rehype.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD f27c758f_c47e_e187_586b_bb0dc981b9f7["hasServerDeferDirective()"] 89da4403_ab4a_62fa_64f0_d53bd0b3aee8["rehype.ts"] f27c758f_c47e_e187_586b_bb0dc981b9f7 -->|defined in| 89da4403_ab4a_62fa_64f0_d53bd0b3aee8 d17ed63a_5ec6_bc29_96d7_b3145cec7d5d["rehypeAnalyzeAstroMetadata()"] d17ed63a_5ec6_bc29_96d7_b3145cec7d5d -->|calls| f27c758f_c47e_e187_586b_bb0dc981b9f7 style f27c758f_c47e_e187_586b_bb0dc981b9f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/jsx/rehype.ts lines 190–194
function hasServerDeferDirective(node: MdxJsxFlowElementHast | MdxJsxTextElementHast) {
return node.attributes.some(
(attr) => attr.type === 'mdxJsxAttribute' && attr.name === 'server:defer',
);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does hasServerDeferDirective() do?
hasServerDeferDirective() is a function in the astro codebase, defined in packages/astro/src/jsx/rehype.ts.
Where is hasServerDeferDirective() defined?
hasServerDeferDirective() is defined in packages/astro/src/jsx/rehype.ts at line 190.
What calls hasServerDeferDirective()?
hasServerDeferDirective() is called by 1 function(s): rehypeAnalyzeAstroMetadata.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free