Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/bundleSize/bundleSizeConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

export const VARIANCE = 5;

export const MIN_SIZE = 922;
export const MAX_SIZE = 1292;
export const MIN_SIZE = 915;
export const MAX_SIZE = 1284;
1 change: 1 addition & 0 deletions src/app/components/Image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const Image = ({
href={src}
imageSrcSet={srcSet}
imageSizes={sizes}
{...(fetchPriority && { fetchPriority })}
/>
</Helmet>
)}
Expand Down
1 change: 1 addition & 0 deletions src/app/components/ImageWithCaption/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const ImageWithCaption = ({
width={width}
lazyLoad={lazyLoad}
preload={shouldPreloadLeadImage}
fetchPriority={shouldPreloadLeadImage ? 'high' : undefined}
srcSet={primarySrcset || undefined}
fallbackSrcSet={fallbackSrcset || undefined}
mediaType={primaryMimeType || undefined}
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ module.exports = ({
ecma: IS_LEGACY_WEB ? 5 : 2017,
keep_classnames: IS_PROD_PROFILE,
keep_fnames: IS_PROD_PROFILE,
compress: {
passes: 2,
},
},
}),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ exports[`Canonical Articles Image should match snapshot 1`] = `
<img
alt="Alexei Navalny na Yulia Navalnaya bari i Moscow mu 2013 muri metingi yo kwiyamamaza kw'abakuru b'imijyi"
class="css-1seqhu9"
fetchpriority="high"
height="864"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ exports[`Canonical Articles Image should match snapshot 1`] = `
<img
alt="Taswirar Faransa wanda ke nuna Paris da Cognac"
class="css-1seqhu9"
fetchpriority="high"
height="351"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ exports[`Canonical Articles Image should match snapshot 1`] = `
<img
alt="Pauline Clayton"
class="css-1seqhu9"
fetchpriority="high"
height="360"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ exports[`Canonical Articles Image should match snapshot 1`] = `
<img
alt="قهوه"
class="css-1seqhu9"
fetchpriority="high"
height="360"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ exports[`Canonical Articles Image should match snapshot 1`] = `
alt="این تصویر آزمایشی ، کپی رایت بی بی سی ، نقشه ای از فرانسه را نشان می دهد. تصویر در سه بلوک اول است و این عنوان را دارد.
"
class="css-1seqhu9"
fetchpriority="high"
height="549"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ exports[`Canonical Articles Image should match snapshot 1`] = `
<img
alt="Map of France showing Paris and Cognac"
class="css-1seqhu9"
fetchpriority="high"
height="351"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ exports[`Canonical Photo Gallery Page Image should match snapshot 1`] = `
<img
alt="Tenista de 1904"
class="css-1seqhu9"
fetchpriority="high"
height="549"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ exports[`Canonical Photo Gallery Page Image should match snapshot 1`] = `
<img
alt="ดอกไม้ถูกนำมาวางไว้ที่ประติมานุสรณ์"
class="css-1seqhu9"
fetchpriority="high"
height="549"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ exports[`Canonical Story Page Image should match snapshot 1`] = `
<img
alt="social media"
class="css-1seqhu9"
fetchpriority="high"
height="351"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ exports[`Canonical Story Page Image should match snapshot 1`] = `
<img
alt="A person holding a union jack umbrella in front of Big Ben"
class="css-1seqhu9"
fetchpriority="high"
height="549"
loading="eager"
sizes="(min-width: 1008px) 760px, 100vw"
Expand Down
Loading