Open britzl opened 4 years ago
I can help with the load optimizations.
<img>
elements with <picture>
element with <source type="image/webp">
and <img>
fallback for older browsers. I have no experience with Jekyll but it seems to be possible to add a Jekyll template for it, right? Then will be easy to replace a few <img>
with <picture>
.<picture>
elements.The 2 is related to https://github.com/defold/defold.github.io/issues/15. It might be possible to use webp>png/jpg without the automation first, possibly with a template file and https://devopsx.com/jekyll-check-if-file-exists/ . If there is no .webp for the image then render a single <img>
, otherwise, render the <picture>
element with webp and png/jpg.
- Add lazy loading
This is a really good suggestion! I'm going to try this!
2. At least convert home page png and jpg to webp
Yep, moving to webp will definitely improve page load times!
https://developers.google.com/speed/pagespeed/insights/?url=www.defold.com