Skip to content

Commit 86ee691

Browse files
Restore Island
1 parent 3463988 commit 86ee691

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dotcom-rendering/src/components/LoopVideoInArticle.importable.tsx renamed to dotcom-rendering/src/components/LoopVideoInArticle.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
import type { MediaAtomBlockElement } from '../types/content';
99
import { Caption } from './Caption';
1010
import { SelfHostedVideo } from './SelfHostedVideo.importable';
11+
import { Island } from './Island';
1112

1213
type LoopVideoInArticleProps = {
1314
element: MediaAtomBlockElement;
@@ -29,7 +30,7 @@ export const LoopVideoInArticle = ({
2930
}
3031

3132
return (
32-
<>
33+
<Island priority="critical" defer={{ until: 'visible' }}>
3334
<SelfHostedVideo
3435
atomId={element.id}
3536
fallbackImage={posterImageUrl}
@@ -57,6 +58,6 @@ export const LoopVideoInArticle = ({
5758
mediaType="SelfHostedVideo"
5859
/>
5960
)}
60-
</>
61+
</Island>
6162
);
6263
};

dotcom-rendering/src/lib/renderElement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { Island } from '../components/Island';
2929
import { ItemLinkBlockElement } from '../components/ItemLinkBlockElement';
3030
import { KeyTakeaways } from '../components/KeyTakeaways';
3131
import { KnowledgeQuizAtom } from '../components/KnowledgeQuizAtom.importable';
32-
import { LoopVideoInArticle } from '../components/LoopVideoInArticle.importable';
32+
import { LoopVideoInArticle } from '../components/LoopVideoInArticle';
3333
import { MainMediaEmbedBlockComponent } from '../components/MainMediaEmbedBlockComponent';
3434
import { MapEmbedBlockComponent } from '../components/MapEmbedBlockComponent.importable';
3535
import { MiniProfiles } from '../components/MiniProfiles';

0 commit comments

Comments
 (0)