Skip to content

Commit

Permalink
remove lazy on header
Browse files Browse the repository at this point in the history
  • Loading branch information
radames committed Jun 24, 2021
1 parent 5218028 commit 4633a55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
11 changes: 5 additions & 6 deletions components_local/FeatureHeaderCenter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,29 @@
<picture>
<source
type="image/webp"
:data-srcset="`compressed/${headerData.featureImage}@0.5x.webp 110w,
:srcset="`compressed/${headerData.featureImage}@0.5x.webp 110w,
compressed/${headerData.featureImage}@0.25x.webp 552w,
compressed/${headerData.featureImage}@0.75x.webp 1651w,
compressed/${headerData.featureImage}.webp 2200w
`"
/>
<source
type="image/jpeg"
:data-srcset="`compressed/${headerData.featureImage}@0.5x.jpg 110w,
:srcset="`compressed/${headerData.featureImage}@0.5x.jpg 110w,
compressed/${headerData.featureImage}@0.25x.jpg 552w,
compressed/${headerData.featureImage}@0.75x.jpg 1651w,
compressed/${headerData.featureImage}.jpg 2200w
`"
/>

<img
loading="lazy"
class="w-100 db lazyload img-fluid"
:data-srcset="`compressed/${headerData.featureImage}@0.5x.jpg 110w,
class="w-100 db img-fluid"
:srcset="`compressed/${headerData.featureImage}@0.5x.jpg 110w,
compressed/${headerData.featureImage}@0.25x.jpg 552w,
compressed/${headerData.featureImage}@0.75x.jpg 1651w,
compressed/${headerData.featureImage}.jpg 2200w
`"
:data-src="`compressed/${headerData.featureImage}@0.75x.jpg`"
:src="`compressed/${headerData.featureImage}@0.75x.jpg`"
alt="A man gets visualized by a machine, Header image"
/>
</picture>
Expand Down
2 changes: 1 addition & 1 deletion data/data.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion post.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const POSTCONFIG = {
tweetMessage: '@itsyrmedia',
url: CAN_URL,
featureImage: `${CAN_URL}/${content.seo_image}`,
featureImagePath: content.featureImage,
featureImageDescription: content.featureImageDescription,

wpPostSlug: 'north-carolina-vs-vaping-companies',
Expand Down

0 comments on commit 4633a55

Please sign in to comment.