Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Image Minification and WebP Version #13

Merged
merged 4 commits into from
Oct 6, 2019
Merged
Show file tree
Hide file tree
Changes from 3 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
Binary file modified ichbineinekartoffel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ichbineinekartoffel.webp
Binary file not shown.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
</style>
</head>
<body>
<img src="./ichbineinekartoffel.png" alt="Ich bin eine kartoffel : I am a potato" />
<picture>
<source type="image/webp" srcset="./ichbineinekartoffel.webp" />
<source srcset="./ichbineinekartoffel.png" />
<img src="./ichbineinekartoffel.png" loading="lazy" alt="Ich bin eine kartoffel : I am a potato" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think lazy is necessary here as it is the main content from this webpage and should be loaded as soon as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you. Sorry for not respect contribute guideline. I used it in the commit below.

</picture>
</body>
</html>