Hero: keep the plain HTML region after hydration, add the slider around it
Replacing the region at hydration made new nodes (a late LCP candidate). The first photo, the title and the buttons now stay; the other slides, arrows and controls are added on top. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ const answer = (title: string) => ({
|
||||
});
|
||||
|
||||
function Title({ load }: { load: LoadJson }) {
|
||||
return <p data-testid="title">{useHero(heroContent, load).title}</p>;
|
||||
return <p data-testid="title">{useHero(heroContent, load).hero.title}</p>;
|
||||
}
|
||||
|
||||
const block = (data: unknown) => {
|
||||
|
||||
Reference in New Issue
Block a user